Introducing Brotli Compression Algorithm

1 minute read

Every byte matters, especially when you pay for it. That’s the reason we were so excited to learn about Brotli, a library developed by Google promising even better compression than Gzip.

We started testing Brotli even before its official support in browsers and couldn’t have waited for the widespread client-side adoption. CDN77 has proudly become the first CDN provider to support Brotli. This is a great addition to our support of Gzip which already saves up to 70% of data transferred.

Our tests were in line with experiments made by and Akamai and confirm that Brotli should bring 25% reduction in data size compared to Gzip for the most common assets like Javascript and CSS files. For HTML, Brotli promises up to 40% difference (with median around 25%).

Since you only pay for the data transferred with us, this should bring you not only an improvement in speed of your content delivery but also significant savings.

Brotli and CDN77

Brotli development

Brotli is a compression algorithm introduced in September 2015 by Google. It has had a predecessor Zopfli – an algorithm which has been created in 2013 and served mainly for compression of web fonts.

We planned to bring Brotli to you about 2 months earlier, but we realized that some major browsers weren’t ready.  And what’s the point in providing Brotli support without your users being able to take advantage of it, right? While deploying, we found a bug in the code but the awesome guys from Chrome development team fixed it in light speed. So even thanks to them you can enjoy Brotli in Chrome today.

How to test Brotli?

Anything that makes your content delivery faster and cheaper is a high priority for us. That’s why we now offer the Brotli support for free to all clients. If you are our customer, there is no need to activate the functionality, it’s ON by default. Gzip and non-compressed transfers of course remain intact.

You can see enabled compression algorithms by checking content-encoding response header.

If you aren’t among our clients yet, feel free to sign up for our free 14-day trial and test all of the latest web performance features yourself.

9 Replies to “Introducing Brotli Compression Algorithm”

  1. I find it quite funny that the project follows bread names from Swiss bakeries. Most probably has to do with it being developed in Zürich. Do you know if this will be available also on NGINX as an add-on?

    1. Hi Brian, do you mean an nginx module? Unfortunately there is none publicly available that would work :/ But probably there will be one out later, once Brotli becomes more popular.

        1. The fix to the issue is not included in Google’s version yet. Should be soon, but you need to do some hacking around at the moment.

  2. Brotli also needs a Java implementation (to be used in Java application servers), to be supported in Apache, nginx, IIS and nodejs as well.

    1. @Thai

      You’re 100% right, for a broader adoption Java servers needed to be enabled for brotli compression.
      I’ve great news for you: this is already done:
      These are Java bindings for Google’s brotli library, as well as implementations for servlet filters and input&output streams. Jbrotli is a drop in replacement for many gzip use cases.

Leave a Reply

Your email address will not be published. Required fields are marked *