You are here: Foswiki>HomeInfra Web>Brotli (22 Aug 2019, AdminUser)Edit Attach

Brotli

Aim is to replace gzip when it comes to HTTP(S) web compression. Major browsers already support it, but only over a TLS/SSL connection. The compression speed is not so great, but brolti compressed content will be smaller then with gzip.

Accept-Encoding: deflate,gzip, br

Brotli can also be used as a standalone compressor.

Installation standalone

Clone

git clone https://github.com/google/brotli.git

Compile

mkdir out && cd out
../configure-cmake
make
make test
make install

Installation NGINX + Brotli

https://github.com/google/ngx_brotli

After installation you need to activate Brotli compriossion in nginx.conf
...

        # Brotli compression
        brotli on;
        brotli_comp_level 4;
        brotli_types text/plain text/css application/javascript image/svg+xml;
...

Besides the new header, I don't see a significant performance improvement compared to good old gzip/deflate.
Topic revision: r2 - 22 Aug 2019, AdminUser - This page was cached on 22 Aug 2019 - 22:25.

This site is powered by FoswikiCopyright © by Eddy Vervest