mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #419] [MERGED] fix(isr): namespace cache keys by buildId #557
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#557
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/419
Author: @Divkix
Created: 3/10/2026
Status: ✅ Merged
Merged: 3/10/2026
Merged by: @james-elicx
Base:
main← Head:fix/isr-cache-key-buildid📝 Commits (7)
fafdd02fix(isr): namespace cache keys by buildId7fbe420test: update pages-server-entry snapshot for buildId cache keyb6ff058fix(isr): inline isrCacheKey with fnv1a64 hashing in pages server entry2b794f6Merge remote-tracking branch 'upstream/main' into fix/isr-cache-key-buildidcc54630address review: clarify __VINEXT_BUILD_ID is undefined in dev by design9b7608aaddress review: align app-rsc-entry ISR key format with pages router, add commentsde45533address review: clarify keep-in-sync comment scope (prefix/hashing, not full key format)📊 Changes
6 files changed (+160 additions, -39 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+9 -4)📝
packages/vinext/src/entries/pages-server-entry.ts(+26 -3)📝
packages/vinext/src/server/dev-server.ts(+14 -2)📝
packages/vinext/src/server/isr-cache.ts(+4 -3)📝
tests/__snapshots__/entry-templates.test.ts.snap(+80 -27)📝
tests/isr-cache.test.ts(+27 -0)📄 Description
Summary
buildIdin ISR cache key generation to prevent stale cache reuse across deploys<router>:<pathname>to<router>:<buildId>:<pathname>when buildId is availabledev-server.ts,pages-server-entry.tsCloses #415
Test plan
isrCacheKey()with and without buildId🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.