I've discovered that streaming is broken for a cloudflare worker, but only in one of my accounts.
Working deployment: https://tss-streaming.jakst.workers.dev/ (streaming works on every request)
Broken deployment: https://tss-streaming.jn-endform.workers.dev/ (streaming only works on every ~10-20th request or so)
What I've discovered is that the difference seems to be the encoding that get's applied. On the working version, all requests respond with header Content-Encoding: zstd, while on the broken version it responds with Content-Encoding: br on the requests where streaming breaks, and zstd in the ones where it works.
This is super odd to me. Why does streaming break when using brotli? Why does the Cloudflare switch between two different encodings in one of my accounts? How do I force the encoding in the broken version to always be zstd?