Jason Hostetter
Jason Hostetter
Explore posts from servers
CDCloudflare Developers
Created by Jason Hostetter on 3/22/2024 in #workers-help
Content-Encoding not set
It turns out I had to set the encodeBody: 'manual' option on the Response constructor from R2 to prevent double compression.
4 replies
CDCloudflare Developers
Created by Jason Hostetter on 3/22/2024 in #workers-help
Content-Encoding not set
Regarding the Content-Encoding header, for some reason when I change the Accept-Encoding header in the request to just gzip instead of the default gzip, deflate, br, then the correct Content-Encoding header shows up in the response. Not sure what that's about
4 replies
CDCloudflare Developers
Created by Jason Hostetter on 3/22/2024 in #workers-help
Content-Encoding not set
It actually seems like maybe the real problem is that the response body is getting gzipped again by the worker automatically, so that when Chrome decompresses it, the body is still a gzipped resource.
4 replies