© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•7mo ago•
16 replies
Jakob Norlin

Streaming response breaks on one Cloudflare account, but not the other

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
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?
image.png
image.png
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Worker response not streaming
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
15mo ago
Streaming response disconnect hook
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
11mo ago
Does the local runtime support streaming response?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Cloudflare Pages + SvelteKit streaming responses
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago