You are here: Foswiki>HomeInfra Web>Brotli (12 Sep 2018, AdminUser)Edit Attach

Brotli

Aim is to replace gzip when it comes to HTTPS compression. Major browsers already support it, but only over TLS/SSL.

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: r3 - 12 Sep 2018, AdminUser - This page was cached on 18 Sep 2018 - 12:42.

This site is powered by FoswikiCopyright © by Eddy Vervest