Brotli, explained
The server compresses the file, and the browser unpacks it automatically. Visitors do not notice anything, apart from a faster page.
Browsers only ask for Brotli over HTTPS. If it is not available, gzip is the usual fallback, and servers can offer both.
Higher compression levels make smaller files but take longer. Static files can be compressed once ahead of time at a high level, while dynamic pages often use a lower level to save time.
Do not compress images, video or fonts in this way. Formats such as JPEG, WebP, MP4 and WOFF2 are already compressed, so there is little to gain.



