Cache busting due to new deploymentId #63350
Unanswered
Fonger
asked this question in
App Router
Replies: 2 comments 3 replies
-
Noticed the same thing when looking into this new deploymentId feature today. One potential improvement could be setting the No-Vary-Search header for static assets so the "dpl" parameter doesn't affect caching, but it doesn't seem very supported yet. I haven't tried this out yet, but I suspect providing a CDN asset prefix might omit the dpl parameter and fix this too, but isn't ideal. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If using CloudFront, it is possible to omit query strings from cache key. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi
I'm experimenting with deploymentId setup to protect basic version skew.
It's important for server component/actions.
However, I see all of static assets are also suffixed such deployment id with
?dpl=DEPLOYMENT_ID
.IMO it's not good because all static files ( /_next/static/...) in production come with hash in filename.
If we do this, users can't share the cache even if the files are not changed (same hash filename) for the new deployment.
For example
These 2 files are the same, but users must re-download the JS because of a new deployment.
Beta Was this translation helpful? Give feedback.
All reactions