-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Streaming dynamic server responses are buffered when testing with wrangler dev
#1237
Comments
Another implementation of the workaround: |
wrangler dev
I remember seeing a similar workaround noted in the Hono docs for streaming as well, see callout below the code block here: https://hono.dev/docs/helpers/streaming#streamtext |
There is more context in this comment. I came up with a way to detect if the server is running on production Cloudflare Workers vs the We don't want to enable it in production. If we do, the responses aren't compressed. I verified in #1242 that production responses still have the zstd compression automatically added by Cloudflare but streaming works. |
It doesn't happen in production with a Cloudflare Worker or with
waku dev
. I found a related issue in the workers-sdk repo. It seems to be due to automatic compression of html and txt responses. It looks like there is a workaround - but I think we can wait for an upstream fix to #8004.The text was updated successfully, but these errors were encountered: