{"id":253419,"date":"2017-04-12T05:46:25","date_gmt":"2017-04-12T12:46:25","guid":{"rendered":"http:\/\/css-tricks.com\/?p=253419"},"modified":"2019-07-04T16:46:09","modified_gmt":"2019-07-04T23:46:09","slug":"brotli-static-compression","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/brotli-static-compression\/","title":{"rendered":"Brotli and Static Compression"},"content":{"rendered":"

Content compression can be as simple as flipping a switch, but there’s a lot to consider beyond that. We pretty well know what<\/em> we need to compress, but what about configuring compression? Or static versus dynamic compression? What about Brotli?<\/p>\n

<\/p>\n

By now, Brotli enjoys support in a good chunk of browsers in use. While it provides performance advantages in many situations, there are some ins and outs that can prove challenging. At its highest compression setting, Brotli provides superior compression ratios to gzip, but the compression speed at this setting is slow enough that the benefit is squandered when content is dynamically compressed. What you really want in cases such as these is static compression. If you’re unaware of the differences between static and dynamic compression, here’s a quick refresher: <\/p>\n