Cache-Control headers are not being set in the Vercel deployment #89439
Replies: 1 comment 2 replies
-
|
I am a little rusty on this area right now, but IIRC, since your page is a This is one of those cases where self-hosting works the expected way, cuz no vendor-lock in, you are in full control, but if you do deploy in a vendor, you give up some control, in exchange for the optimizations they put in place to make your app work correctly and efficiently. I think you can go here, https://vercel.com/docs/headers/cache-control-headers and get the Ask AI bot, to explain some of these a lot better than I can here. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve set
Cache-Controlheaders innext.config.tslike this:When I run next build locally, the header is visible. However, after deploying to Vercel, the header does not appear.
Here are the GitHub repository and deployment links for reference:
GitHub: https://github.com/abhishekmardiya/nextjs-cdn-cache
Deployment: https://nextjs-cdn-cache.vercel.app/test
I’m currently testing this on the Vercel free tier.
Beta Was this translation helpful? Give feedback.
All reactions