Brotli is the new gzip

2329 days ago, 0 views.

What is brotli

​​​​​Brotli is an open source, lossless data compression algorithm developed by Google, with a better compression density than gzip that reduces bandwidth consumption and helps content load faster.

Although it is still in development, brotli aspires be the next general purpose compression algorithm for the web.

Nowadays, brotli support in web browsers is above 80%.

What about gzip

gzip is the de facto standard compression algorithm for the web. The initial release was 25 years ago 😱.

Actually gzip and brotli are very related, using LZ77 and Huffman algorithms.

How to support brotli

brotli is a promising compression algorithm and every year is better, at least you should be able to support it to offer an alternative to gzip.

If you are using a CDN like CloudFlare, probably they are already supporting it.

Enable brotli support at CloudFlare is as easy as move this checkbox.

If you are writing a web server, it depends on your programming language; Node.js still not added as part of the core but for sure they will do that soon.

You can check if your web server has or not brotli support doing a brotli test.

Bibliography

Kiko Beats

Kiko Beats