Inconsistent _rsc Query Parameters Across Next.js App Router Pods (Kubernetes) #83214
Unanswered
navata
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
We are operating a Next.js (App Router, all pages SSR) application in a multi-pod Kubernetes environment. Despite ensuring a shared build ID and using a shared Redis cache for all pods, we are observing that requests for the same page are served with different _rsc query parameters, for example:
Pod 1: .../siro-dieu-tri-viem-duong-ho-hap-kem-theo-ho-prospan-100ml.html?_rsc=30ufy
Pod 2: .../siro-dieu-tri-viem-duong-ho-hap-kem-theo-ho-prospan-100ml.html?_rsc=bb119
Current: This behavior forces our Cloudflare CDN to duplicate cached versions for the same URL, which significantly reduces our cache hit rate and increases server resource consumption due to redundant rendering.
Expected: Our understanding is that the _rsc hash is a unique identifier for the React Server Component payload.
I hope to receive support from everyone! Thanks !
Beta Was this translation helpful? Give feedback.
All reactions