Next.js Discord

Discord Forum

I get Cache-Control: no-store, must-revalidate

Unanswered
Common Moorhen posted this in #help-forum
Open in Discord
Common MoorhenOP
Hello I get Cache-Control: no-store, must-revalidate even i set my Cache-Control in route segment or middleware. It still stays the same. Any recommendation?

7 Replies

Common MoorhenOP
i tried it on mine boilerplate project and the issue remains unchanged
@Common Moorhen You still get stale data on hard-refresh?
Common MoorhenOP
yes i found out i have to use production build to be able to apply these changes. however on production it doesnt work
but on locale it does
so in local it works but in production build, it doesn't work? can you show me the code?
Common MoorhenOP
i basically have a server.js that applies https to my localhost with DEV set to false for production start script and on localhost it give me the correct value but in my specific page it is not. My all config is just using revalidate set to 3600 which results in below:

localhost VS prod
Common MoorhenOP
hello, any help why export const revalidate set to any value doesnt work on my specific website? it doesnt rewrite the cache-control