Cloudflare DevelopersCD
Cloudflare Developers3y ago
26 replies
gonz

Fetching compressed objects from origin

I've got a bunch of compressed objects in the origin (GCS bucket) and if I hit them directly (with curl using --compressed), they are returned to me gzipped.

Now, if I hit my worker with --compressed and it goes and fetches the same object from the origin, it comes back uncompressed. I remember reading somewhere that regardless of what headers are sent in the request to Cloudflare, it will always attempt to fetch from the origin using compression and then depending on the user request, it will return compressed or uncompressed, but that doesn't seem to be the case.

Any ideas? TIA.
Was this page helpful?