How to remove Next-Router-State-Tree, Next-Router-Prefetch from Vary Headers #66471
Replies: 3 comments 2 replies
-
|
Similarly, using |
Beta Was this translation helpful? Give feedback.
-
|
Not for the safety reason but we need a custom vary header for fine-grained control of CDN Cache. Hope it can be move forward as soon as possible! |
Beta Was this translation helpful? Give feedback.
-
|
For anyone coming across this - I had this same exact error and fixed it by checking the paths exported by getStaticPaths and ensuring there weren't any special symbols. The "circle R" symbol was in one of my paths. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Hello Everyone,
Is there a way to disable below header from response headers ? Our security team don't typically like headers that expose the framework/tech used to build and suggested we remove it. I totally get it view source will immediately give it away it's Next.js.
RSC, Next-Router-State-Tree, Next-Router-PrefetchExample of the header from nextjs website:
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions