angristan / nginx-autoinstall

Compile NGINX from source with custom modules and patches on Debian and Ubuntu
GNU General Public License v3.0
636 stars 237 forks source link

Support Zstd #247

Open muuvmuuv opened 2 years ago

muuvmuuv commented 2 years ago

Facebook created zstd to compress stuff in favour of gzip and brotli (Google). It could be added like Brotli as far as I remember when I tried but haven't compiled it for a while.

anndix commented 1 year ago

Does zstd work with regular browsers ? I apologise for my ignorance.

Thanks

muuvmuuv commented 1 year ago

Not yet for browsers. Here is an interesting read from "Can I use": https://github.com/Fyrd/caniuse/issues/4065

Mostly it's used for applications that are made in-house where you have control over data transport. We would like to use it for our 50k+ JSON files, since we can't split them yet but can improve data speed with zstd :)

romulasry commented 1 year ago

https://www.daniel.priv.no/tools/zstd-browser-test/