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


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


git clone


mkdir out && cd out
make test
make install

Installation NGINX + 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