mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 21:07:46 +00:00
[next] Fix missing initial RSC headers (#11552)
While investigating https://github.com/vercel/next.js/issues/59883 we noticed the RSC Prerender did not have all the expected headers like the HTML Prerender which caused unexpected revalidation behavior specifically on client-transition as some of these headers are used to detect if a revalidated tag is associated with specific outputs. x-ref: https://github.com/vercel/next.js/issues/59883
This commit is contained in:
@@ -2465,6 +2465,7 @@ export const onPrerenderRoute =
|
||||
...(rscEnabled
|
||||
? {
|
||||
initialHeaders: {
|
||||
...initialHeaders,
|
||||
'content-type': rscContentTypeHeader,
|
||||
vary: rscVaryHeader,
|
||||
// If it contains a pre-render, then it was postponed.
|
||||
|
||||
Reference in New Issue
Block a user