RSC code as plain text on homepage
Unanswered
Philippine Crocodile posted this in #help-forum
Philippine CrocodileOP
We're using Next.js
We use an Apache proxy to set/unset Next.js headers as needed, and so I implemented the above conditional check today. It tracks in that I do see the
Has anyone else seen anything like this and if so were there any additional configuration or code updates required to resolve the issue?
v14.2.26
and have a mostly static homepage. Cloud CDN disabled. Occasionally/randomly we will see RSC code as plain text at the very top of the homepage. Rerunning the build usually gets rid of it, but this is obviously not a great long-term solution. I was using Vercel's v0
agent and learned the following: **Header/Query Parameter Mismatch**: Occurs when a request has the `Rsc: 1` header but is missing the `?_rsc` query parameter due to redirects
...
Use Edge Functions to remove the `Rsc: 1` header when the `_rsc` query parameter is missing
We use an Apache proxy to set/unset Next.js headers as needed, and so I implemented the above conditional check today. It tracks in that I do see the
Rsc: 1
header being sent for the homepage and the homepage never has the _rsc=
parameter attached to the URL so I'm hopeful the issue will be resolved, but unfortunately I'm in a situation where I have to just wait to see if it happens again and hope to get the jump on it if it does.Has anyone else seen anything like this and if so were there any additional configuration or code updates required to resolve the issue?