Add Zstd Content-Encoding support between Cloudflare and origin servers

Type

Product improvement

Description

Support Zstd Content-Encoding from origin servers

Benefit

Currently only Gzip and Brotli are supported between Cloudflare and origin servers. In my case my origin server are able to store way more files with zstd than with brotli.

This way I could keep the files already compressed with zstd without the need to decompress them in between. Thus this would allow faster serving of the files and less wasted CPU cycles and thus saving the environment as well.

1 Like

I’d imagine this will eventually happen as I know Cloudflare does check what content encoding methods are supported on origin server already for gzip and brotli

Though you need origin Web servers to support zstd content encoding too. For my Centmin Mod Nginx server builds I already added optional zstd content encoding support preparing for Cloudflare’s support

3 Likes

Besides of the nginx zstd-nginx-module also Caddy also seems to support zstd encoding already which is great.

This feature will probably not happen anytime soon but because the Zstd is already supported between Cloudflare and website visitors I also imagine this will happen eventually.

Waiting for this to happen.
Added my vote as well.

I just tested this yesterday and can confirm only Brotli and Gzip are still supported for end-to-end compression.

When end-to-end compression is not met, it will fallback to Zstd.