Skip to content

fix(cloudflare): validate CDN warm responses against deployed builds - #3026

Closed
james-elicx wants to merge 7 commits into
codex/rsc-prewarm-e2e-prooffrom
codex/rsc-prewarm-deploy-safety
Closed

fix(cloudflare): validate CDN warm responses against deployed builds#3026
james-elicx wants to merge 7 commits into
codex/rsc-prewarm-e2e-prooffrom
codex/rsc-prewarm-deploy-safety

Conversation

@james-elicx

@james-elicx james-elicx commented Aug 22, 2026

Copy link
Copy Markdown
Member

Summary

Consolidates the response-validation and build-identity hardening previously split across #3021#3026.

  • validate effective Cloudflare cache policy, shared freshness, cache admission status, cookies, and exact supported Vary
  • retry only failed staged requests after the initial queue and distinguish transient old-build responses from permanent same-build failures
  • expose generic adapter-owned build identity at the outer App and Pages response boundary
  • require verifiable HTML build identity where strict/no-promote semantics depend on it, while retaining canonical RSC warming for capable adapters
  • resolve concrete App/Pages ownership before emitting RSC warm targets, including hybrid i18n routes
  • keep warmup bound to the uploaded Worker build and still apply triggers after promotion

Scope

Only canonical RSC/ISR CDN warm planning, response validation, and staged deploy orchestration. No middleware, TPR, development-mode, cross-version-cache, or generic caching changes.

Validation

The retained commits keep their focused cache, adapter, discovery, deploy, and Worker tests. The cumulative exact head has passed the complete CI suite and deployed browser-reuse proof.

Consolidates #3021, #3022, #3023, #3024, #3025, and #3026. Stacked on #3020.

@pkg-pr-new

pkg-pr-new Bot commented Aug 22, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: b88d125

@github-actions

Copy link
Copy Markdown
Contributor

Performance benchmarks

Compared b88d125 against base 011d187 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.0 KB 142.0 KB ⚫ +0.0%
Client entry size (gzip) vinext 129.3 KB 129.3 KB ⚫ +0.0%
Dev server cold start vinext 2.20 s 2.20 s ⚫ -0.3%
Production build time vinext 2.37 s 2.36 s ⚫ -0.4%
RSC entry closure size (gzip) vinext 116.0 KB 116.0 KB ⚫ +0.0%
Server bundle size (gzip) vinext 197.5 KB 197.5 KB ⚫ +0.0%

View detailed results and traces

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

@james-elicx james-elicx changed the title fix(cloudflare): keep CDN warmup bound to the deployed build fix(cloudflare): validate CDN warm responses against deployed builds Aug 22, 2026
@james-elicx
james-elicx changed the base branch from codex/rsc-prewarm-validation-hardening to codex/rsc-prewarm-e2e-proof August 22, 2026 16:58
@james-elicx

Copy link
Copy Markdown
Member Author

Superseded by consolidated PR #3040. No commits were dropped or rewritten: #3040 now contains this exact linear commit as part of #3021#3040. Closing only the redundant draft PR.

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