Open
Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
No response
Describe the solution you'd like
Zstandard, or zstd
, is a data compression mechanism described in RFC8878. It is a fast lossless compression algorithm, targeting real-time compression scenarios at zlib-level and better compression ratios. The "zstd" token was added as an IANA-registered Content-Encoding token as per https://datatracker.ietf.org/doc/html/rfc8878#name-content-encoding.
The Facebook/Zstd team has published some of their research on compression level vs. CPU vs. compression ratio.
Current support
- Chrome: Planned in version 118
- Safari: Not planned but with positive position
- Mozilla: Not planned with defer position
- Curl: Released since version 7.72.0
Features request
Request compression
- Support
zstd
as the token from theContent-Encoding
header in the request. - Decompress with Zstandard the request content.
Response compression
- Support
zstd
as a token from theAccept-Encoding
header in the request. - Compress with Zstandard when the
zstd
token is elected as response compression, and so stored in theContent-Encoding
header in the response.
Zstandard implementation
- Native: https://github.com/facebook/zstd
- .NET Runtime: Add support for Zstandard to System.IO.Compression runtime#59591
Additional context
No response