-
Notifications
You must be signed in to change notification settings - Fork 326
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
🐛 BUG: Brotli response not decoded #1587
Comments
This is more of a feature request than a bug. The spec does not require brotli support. That said, we actually do have this support, but it is still experimental. You can enable brotli support by setting the @fhanau may know more about what the remaining issues are. |
Yes, that's a good description of the issue. As Kenton noted, you may experience different behavior in the production runtime than in local testing due to incomplete brotli support Cloudfare's stack. Notably, you will not be able to fetch using the brotli content encoding in production even when you add it to accept-encoding at this time, so currently the flag is still experimental and primarily useful for local testing. |
@fhanau ... I wonder if it would be worthwhile adding a warning when |
Which Cloudflare product(s) does this pertain to?
Miniflare
What version(s) of the tool(s) are you using?
^3.20231218.4
What version of Node are you using?
18.19.0
What operating system are you using?
Mac
Describe the Bug
The result of
res.text()
of a response withcontent-encoding: br
is not decoded, but when it isgzip
, it is correctly decoded.This worker returns a mess:
This worker returns the correct HTML:
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: