angular-1.8.3.js
- Uncompressed
- 1,346 KiB
- gzip
- 329 KiB (76%)
- Brotli
- 256 KiB (81%)
Brotli is a lossless compression format for web text, sent as Content-Encoding: br. See web.dev's gzip comparison, compression levels and how to check your server.
Brotli is a lossless compressed data format, defined in RFC 7932, that web servers can use to shrink text assets before sending them. Browsers ask for it with Accept-Encoding and servers answer with Content-Encoding: br. Web.dev lists it with gzip as a commonly used algorithm that performs best on text such as HTML, CSS and JavaScript.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
On the web it is one of the HTTP content encodings. MDN lists br as "A format using the Brotli algorithm structure (defined in RFC 7932)" alongside gzip, deflate and zstd. It is the same job as gzip compression: make text responses smaller so pages load sooner.
Accept-Encoding request header. The server picks one and names it in the Content-Encoding response header. MDN's example of a browser's preference:Web.dev says all modern browsers support gzip and Brotli and advertise both. Google's crawlers support them too: Google lists gzip, deflate and Brotli (br) as supported content encodings, and the crawler's own Accept-Encoding header advertises them, for example Accept-Encoding: gzip, deflate, br.
Accept-Encoding: br;q=1.0, gzip;q=0.8, *;q=0.1
Content-Encoding: brPercentages are the compression ratios web.dev reports. Brotli is smaller on both files, and the gap is larger on the unminified one. Web.dev adds that both algorithms often reach compression rates as high as 70-90% for larger text files.
Compression helps text-based assets: HTML, CSS, JavaScript. Web.dev warns that running these algorithms on assets already compressed, such as most image formats, yields little to no improvement. Many CDNs offer automatic compression, so check yours before configuring the origin. Web.dev says compressing text-based assets lets a page spend less time loading resources, which helps page speed.
If you see content-encoding: br, Brotli is on for that response. If it prints gzip or nothing, the server chose another encoding or isn't compressing that resource. Test a CSS or JavaScript file as well, because servers often configure compression per file type. Web.dev notes it is the hosting provider's responsibility to configure the server to serve the compressed resource when the client requests it.
curl -sI -H "Accept-Encoding: br" https://example.com/ | grep -i content-encoding4 questions people ask next, answered from the sources on this page.
It is the br HTTP content encoding: a lossless compression format defined in RFC 7932 that servers can use to send smaller HTML, CSS and JavaScript responses.
In web.dev's examples it produced smaller files than gzip on both a raw and a minified JavaScript file. Compression level and whether you compress statically or dynamically also matter.
Yes. Google's crawler documentation lists gzip, deflate and Brotli (br) as supported content encodings.
For files compressed ahead of time, yes, the extra time is paid once. For responses compressed on request, web.dev advises mid-range settings as the better trade-off between ratio and speed.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.