mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #542] [MERGED] fix: prevent user searchParams from leaking into ISR cache #657
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#657
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/542
Author: @NathanDrake2406
Created: 3/15/2026
Status: ✅ Merged
Merged: 3/15/2026
Merged by: @james-elicx
Base:
main← Head:fix/isr-searchparams-leak📝 Commits (1)
3216989fix: prevent user searchParams from leaking into ISR background regeneration cache📊 Changes
3 files changed (+37 additions, -14 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+2 -2)📝
tests/__snapshots__/entry-templates.test.ts.snap(+12 -12)📝
tests/app-router.test.ts(+23 -0)📄 Description
Summary
url.searchParamsintosetNavigationContext()andbuildPageElement(), causing cached content to reflect one user's query params and be served to all subsequent usersnew Headers(),new Map()for cookies), butsearchParamswas missedurl.searchParamswithnew URLSearchParams()in both the navigation context and page element builder during background regenTest plan
URLSearchParams()instead of user's paramsURLSearchParamssubstitution)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.