Support Zstandard as compression algorithm
Describe the feature
Zstandard is a fast compression algorithm, providing high compression ratios. It also offers a special mode for small data, called dictionary compression. The reference library offers a very wide range of speed / compression trade-off, and is backed by an extremely fast decoder
https://facebook.github.io/zstd/
Currently, the options to pre-compile the public assets only allow gzip "and/or" Brotli: https://nitrojs.dev/config#compresspublicassets
Potentially, zstd could provide smaller files, faster (in some scenarios –yet to be investigated).
Additional information
- [ ] Would you be willing to help implement this feature?
Additional info: zstd browser support (Chromium and FF)
@pi0 is this related to https://github.com/nitrojs/nitro/issues/2880 ?
Nop, that is limitation of fetch in node (indici), this is to potentially precompute zstd version of static assets.