fly-proxy now supports ZSTD content encoding

If you use http handler for your service, which is the default setting for [http_service] fly.toml configuration, fly-proxy compresses HTTP responses sent by your app.

Brotli had been the preferred compression algorithm used by the proxy until now, as it provides good compression rate and fast compression/decompression speed.

Recently, Chrome added support for ZSTD compression algorithm (Chrome Platform Status), the other major browsers are expected to follow. fly-proxy now supports it too. Compared to Brotli, ZSTD is slightly faster to compress on the server side and much faster to decompress on the client side.

You don’t need to do anything to enable it for your app. If the client indicates support for ZSTD via Accept-Encoding HTTP header, the proxy will use it as the new preferred compression algorithm.

9 Likes