Should the revalidate route segment config option update the Cache-Control header? #82015
Unanswered
pauledwards241
asked this question in
App Router
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On one of our pages, we've added a dynamic route segment config and set it to:
This changes the page
Cache-Control
header to:I then assumed adding a revalidate route segment config e.g.
Would update the
Cache-Control
header to:But that's not the case. Based on this 2023 StackOverflow discussion, it should. However, it is 1.5 years old.
Is that expected? Does Next.js work out when to revalidate from other response headers instead?
We are hosting on Vercel if that makes a difference.
Beta Was this translation helpful? Give feedback.
All reactions