Skip to content

Commit 666b3cb

Browse files
committed
Document the post-processor buffering exception as out of scope
HTML post-processor configs (the nextjs integration) accumulate the full rewritten document until origin EOF, so those pages do not stream body bytes early. Record the limitation and the intended follow-up (an up-front or streaming should_process gate) in the plan's Out of scope section.
1 parent 911268f commit 666b3cb

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

docs/superpowers/plans/2026-07-08-true-origin-streaming-fastly.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ In scope:
2222

2323
Out of scope:
2424

25+
- HTML post-processor configs (the `nextjs` integration). When any
26+
`IntegrationHtmlPostProcessor` is registered, `HtmlWithPostProcessing`
27+
accumulates the full rewritten document and runs post-processors at origin
28+
EOF, so the lazy stream emits no body bytes until the whole origin transfer
29+
completes — even for pages where `should_process()` would return `false`.
30+
Headers still commit early, but first byte/FCP tracks origin EOF for that
31+
configuration; #849's objective is unmet there. The eventual fix is an
32+
up-front or streaming `should_process` gate so non-RSC pages skip
33+
accumulation entirely (follow-up issue).
2534
- Cloudflare origin streaming. Current adapter rejects `PlatformHttpRequest::stream_response`.
2635
- Spin streaming. Current adapter and upstream EdgeZero Spin conversion are buffered/blocking issues.
2736
- Axum client streaming. Axum is dev-only and has `LocalBoxStream`/`Send` constraints.

0 commit comments

Comments
 (0)