Skip to content

fix(cloudflare): preserve Workers Cache tag parity - #3085

Draft
james-elicx wants to merge 1 commit into
codex/cdn-stack-httpfrom
codex/cdn-stack-cache-tags
Draft

fix(cloudflare): preserve Workers Cache tag parity#3085
james-elicx wants to merge 1 commit into
codex/cdn-stack-httpfrom
codex/cdn-stack-cache-tags

Conversation

@james-elicx

Copy link
Copy Markdown
Member

Summary

  • encode case-sensitive Next.js cache tags as fixed-size Cloudflare-safe digests
  • keep complete invalidation metadata or make an oversized response uncacheable
  • preserve empty, Unicode, long, and case-distinct Next.js tags
  • surface Workers Cache purge failures

Stack

  1. tooling baseline (chore(deps): update Cloudflare Workers tooling #3082)
  2. transport-neutral worker stages (feat(build): add transport-neutral worker stages #3083)
  3. Cloudflare Workers Cache entrypoint isolation (feat(cloudflare): isolate Workers Cache with staged entrypoints #3079)
  4. independently deployed HTTP stages (feat(build): support independently deployed worker stages #3084)
  5. This PR: Workers Cache tag parity

Validation

  • Cloudflare cache and facade tests: 49/49
  • targeted vp check passed
  • vp run @vinext/cloudflare#build

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@vinext/cloudflare@3085
npm i https://pkg.pr.new/create-vinext-app@3085
npm i https://pkg.pr.new/@vinext/types@3085
npm i https://pkg.pr.new/vinext@3085

commit: 1856768

@james-elicx
james-elicx force-pushed the codex/cdn-stack-http branch from dad2728 to ade8f76 Compare August 25, 2026 23:15
@james-elicx
james-elicx force-pushed the codex/cdn-stack-cache-tags branch from 9612cef to 3640860 Compare August 25, 2026 23:15
@github-actions

Copy link
Copy Markdown
Contributor
Example Preview Production Original
app-router-cloudflare preview production
pages-router-cloudflare preview production
app-router-playground preview production original
realworld-api-rest preview production
nextra-docs-template preview production
benchmarks preview production
hackernews preview production original
workers-cache preview production
web preview production

@james-elicx
james-elicx force-pushed the codex/cdn-stack-http branch from ade8f76 to a5a3fc1 Compare August 25, 2026 23:19
@james-elicx
james-elicx force-pushed the codex/cdn-stack-cache-tags branch from 3640860 to 1856768 Compare August 25, 2026 23:19
@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared 1856768 against base a5a3fc1 using alternating same-runner rounds. Next.js was unchanged and skipped.

0 improved · 0 regressed · 6 within ±1.5%

Scenario Framework Baseline Current Change
Client bundle size (gzip) vinext 142.2 KB 142.2 KB ⚫ +0.0%
Client entry size (gzip) vinext 129.5 KB 129.5 KB ⚫ +0.0%
Dev server cold start vinext 2.26 s 2.25 s ⚫ -0.5%
Production build time vinext 2.36 s 2.33 s ⚫ -1.4%
RSC entry closure size (gzip) vinext 121.1 KB 121.1 KB ⚫ -0.0%
Server bundle size (gzip) vinext 205.0 KB 205.0 KB ⚫ -0.0%

View detailed results and traces

🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant