[docs-infra] Prefix /_next/static cache header rule with /x basePath#22748
Merged
Conversation
The docs deploy under basePath /x, so assets are served at /x/_next/static. Keep both rules so hashed assets get immutable caching regardless of the served prefix.
brijeshb42
force-pushed
the
fix/x-basepath-cache-headers
branch
from
June 11, 2026 04:11
ec1c5c6 to
332dd8f
Compare
Deploy previewBundle size
Check out the code infra dashboard for more information about this PR. |
Janpot
approved these changes
Jun 11, 2026
mbrookes
pushed a commit
to mbrookes/mui-x
that referenced
this pull request
Jun 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the previous cache-header fix. The docs deploy under basePath
/x, so assets are actually served at/x/_next/static/...— the bare/_next/static/*rule never matched, leaving hashed assets atmax-age=0,must-revalidate.Adds the
/x-prefixed rule and keeps the bare one as a safety net.Confirmed broken on prod:
curl -sI https://mui.com/x/_next/static/css/*.css→max-age=0.Verify after deploy → expect
immutable.