This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Caching headers are presented in Dev mode while missing in Prod mode #11046
Labels
Linking and Navigating
Related to Next.js linking (e.g., <Link>) and navigation.
Milestone
Bug report
Describe the bug
Cache-control
header is presented in response when working indev
mode. Inprod
mode this header is missing. I was also trying to set headers manually using custom express server before sending a responseres.set("Cache-control", "no-store, must-revalidate")
but it didn't make any change.To Reproduce
Steps to reproduce the behavior:
yarn create next-app
yarn dev
- check response headersyarn build
,yarn start
- check response headersExpected behavior
Cache-control
header is presented in bothdev
andprod
environments.Screenshots
The text was updated successfully, but these errors were encountered: