Skip to content

Handling _rsc Cache Keys #778

Description

@wp99cp

Problem: In rscCaching, you strip the _rsc value: params.set('_rsc', '').

Next.js uses the _rsc query param (often a hash) to ensure the client receives the correct flight segment version for the current build/tree.
Risk: If you deploy a new version of the app, key stripping might match an RSC payload from a previous deployment (if the path is the same). This can lead to hydration errors or broken UI if the client code expects a different RSC structure.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions