Does cloudflare cdn support zstd

Does cloudflare cdn support zstd
12 Replies
Chaika
Chaika8mo ago
Only gzip and brotli right now, and brolti to origin was rolling out earlier this year, I think it's all finished now though: https://developers.cloudflare.com/speed/optimization/content/brotli/content-compression/
Cloudflare Docs
Content compression | Brotli · Cloudflare Speed docs
Cloudflare compresses content in two ways: between Cloudflare and your website visitors and between Cloudflare and your origin server.
dwayn
dwaynOP8mo ago
thx
Chaika
Chaika8mo ago
zstd isn't supported by browsers really: https://caniuse.com/zstd would need that first
dwayn
dwaynOP8mo ago
its in chrome
Chaika
Chaika8mo ago
just in chrome yea, and 123 just made it to stable right? Got a while to go caniuse estimates 0.02% of users currently support it lol there's a forum suggestion if you want to upvote it: https://community.cloudflare.com/t/add-support-for-zstd-as-a-content-encoding/604123 CF in their brotli to origin blog as well
Looking forward, we are closely following trends and new compression algorithms such as zstd as a possible next-generation compression algorithm.
https://blog.cloudflare.com/this-is-brotli-from-origin So maybe eventually
dwayn
dwaynOP8mo ago
nice thanks!
onnimonni
onnimonni3mo ago
Hey, sorry for visiting old thread but does cloudflare support zstd compression from origin servers or are brotli/gzip the only options? I saw this release but wasn't able to understand if this is just for the users->cloudflare or cloudflare->origin? https://discord.com/channels/595317990191398933/1040420029080018945/1285546053076127744
onnimonni
onnimonni3mo ago
Cloudflare Docs
Content compression | Cloudflare Speed docs
Cloudflare compresses content in two ways: between Cloudflare and your website visitors and between Cloudflare and your origin server.
Chaika
Chaika3mo ago
Just users->cloudflare
onnimonni
onnimonni3mo ago
What would be the best place to ask support for this? zstd allows me to store so much more data in the origin server and it would save compute power (and environment 🌍 ) if I could just pass these files directly to cloudflare without decompressing them first. I do understand it's probably still far away
Chaika
Chaika3mo ago
Forums: https://community.cloudflare.com/c/feedback/feature-request/30 it took 6 years from gzip being added at edge for it to be accepted from origins so yea might be a bit lol. I think now fundamentally too zstd from edge is nginx/in front end code and the origin requesting code lives entirely in pingora/rust, so entirely different stacks, probably some of the reason for the delay
onnimonni
onnimonni3mo ago
Thanks! That's great expectation management from you but I'm willing to wait 6 or more years 🙉 And just to let others to find the feature request more easily I will link here as well: https://community.cloudflare.com/t/add-zstd-content-encoding-support-between-cloudflare-and-origin-servers/713907
Want results from more Discord servers?
Add your server