Compression packs your site's files smaller before they go to the visitor, and the browser unpacks them again. Gzip is the well-known older method; Brotli is newer and makes text files a bit smaller still.
In plain words
A page, a stylesheet and a script are plain text, and text is full of repetition. Compression makes clever use of that, like a zip file on your computer. A 100 KB stylesheet often travels as 20 KB.
Every modern browser can unpack both gzip and Brotli, and tells the server which ones it understands. For text, Brotli usually wins a few percent more. That sounds small, but it adds up on every page and every visitor, especially on mobile. Tools like Google PageSpeed point it out when your site does not do it.
Photos do not get smaller this way: they are already packed. For those you need a better format, such as WebP.
How it works at Cubli
Cubli packs the files of every site by itself: with Brotli for browsers that can handle it, and with gzip for the rest. Nothing to set up or install.





