Repository navigation
fix(middleware): preserve Pages rewrite state and cache isolation - #2216
james-elicx wants to merge 4 commits into
Conversation
|
/bigbonk review for issues |
commit: |
|
Review: middleware rewrite parityI reproduced the changes against the fixtures and ran the targeted suites ( Blocking: dev server skips
|
|
Review posted to PR #2216. Summary of findings: Blocking issue: dev/prod parity bug
Production ( I reproduced this with a temporary rewrite (
Secondary notePer-query ISR cache keys ( Verified correct
|
Performance benchmarksCompared 0 improved · 0 regressed · 6 within ±1.5%
View detailed results and traces 🟢 improvement · 🔴 regression · ⚫ change below 1.5% · paired base/head |
|
/bigbonk review for issues |
Review: middleware rewrite parity (re-review after
|
|
To https://github.com/cloudflare/vinext.git |
|
@james-elicx Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
|
/bigbonk review for issues |
1 similar comment
|
/bigbonk review for issues |
Re-review (HEAD
|
|
To https://github.com/cloudflare/vinext.git |
|
/bigbonk review for issues |
1 similar comment
|
/bigbonk review for issues |
Re-review (HEAD
|
|
Review posted to PR #2216. SummaryHEAD is now What the new commit actually did: It only swapped the dev cache-control literal from Blocking issue (unresolved):
Recommendations: thread the full I also carried over the per-query ISR persistence note (prod writes, dev doesn't) and confirmed the static-asset-miss rewrite flow and missing-chunk 404 behavior are correct and well-tested across runtimes (96 unit tests passing locally). |
|
/bigbonk review for issues |
Re-review (HEAD
|
|
Review posted to PR #2216. SummaryHEAD is now What the new commit did (the real structural fix):
Verification:
One remaining non-blocking note (carried over): query-varying rewrites still write a per-query ISR entry in prod ( The blocking issue is resolved; recommendations #1 and #2 are done, and #3 (the per-query write divergence) remains as a documented follow-up. |
|
/bigbonk review for issues |
Re-review (HEAD
|
|
Review posted to PR #2216. SummaryHEAD is Blocking dev/prod cache-control parity bug: confirmed resolved. One remaining non-blocking divergence: query-varying rewrites still write a per-query ISR entry in prod ( Confirmed correct: static-asset-miss rewrite flow ( |
|
Worker C pass for deploy-suite run 28478866791 / job 84413308650: I think this PR already covers the relevant Pages Router middleware rewrite/query/cache-state issue family behind the middleware-general and middleware-trailing-slash failures, and it likely overlaps the middleware-rewrites failures called out in that run as well. I am skipping a duplicate fix/worktree for that backlog item. |
|
Pages Router middleware/trailing-slash cluster pass for deploy-suite run 28478866791 / job 84413308650: this PR appears to already cover the relevant Pages Router middleware rewrite/data-request/cache-state failures from middleware-trailing-slash and the overlapping middleware-general suite. Skipping a duplicate implementation for this assignment. |
|
Run 28938793088 (Next.js
I think this PR is the existing fix for those failures, so I am skipping duplicate implementation in the current functional-backlog pass. |
|
Run 29871622126 / job 88775791401 still fails the functional Pages middleware rewrite cluster in |
09e99fb to
758ce89
Compare
|
/bigbonk review for issues |
1 similar comment
|
/bigbonk review for issues |
|
/bigbonk review for issues |
|
@james-elicx Bonk workflow was cancelled. View workflow run · To retry, trigger Bonk again. |
|
/bigbonk review for issues |
|
/bigbonk review for issues |
Re-review (HEAD
|
|
Review posted to PR #2216. SummaryHEAD is No blocking issues. The dev/prod cache-control parity concern that ran through the prior review chain is resolved, and in a cleaner way than the earlier
Two non-blocking notes:
Confirmed correct: i18n trailing-slash preservation, the |
|
Refreshed and revalidated at
The exact Next.js middleware suite and fresh CI are now being run. |
|
/bigbonk review for issues |
Re-review (HEAD
|
|
Review posted to PR #2216. SummaryHEAD is now Prior note #1 (per-query ISR persistence divergence): resolved. The commit adds a Prior note #2 ( Verification: targeted suites 172 + 2366 passed; The change is well-scoped, matches Next.js behavior, and has good test coverage. No blocking issues — LGTM. |
|
Exact-head targeted Next.js v16.2.6 proof for the base middleware and data-state layer at
All PR #2216-owned rewrite-query propagation, data-request normalization, non-data request shape, missing-asset, and cache-isolation assertions pass on this live head. The remaining client-navigation rows are intentionally implemented by the stacked PR #2454, whose exact composed head passes the full matrix: 66/66, 68/68, 23/23, and 56 passed with 2 intentional skips. Focused vinext tests remain 473/473; independent review, Bonk, and official CI are clean. |
Summary
Next.js parity
Addresses middleware rewrite query, rewritten SSG, and missing static chunk failures from the middleware-general and middleware-trailing-slash suites.
Validation
Full suites and broad E2E validation are deferred to CI.