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
Content-Encoding: zstd
, while on the broken version it responds with
Content-Encoding: br
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?