Brotli
A compression format designed by Google that usually shrinks text more than gzip, at the cost of slower compression at high quality settings.
In more detail
It suits static files that are compressed once and served many times. Browsers ask for it with Accept-Encoding: br.
Related terms
- gzip — The command that compresses a single file and replaces it with a smaller .gz version; gunzip reverses it.
- compression — Encoding data in fewer bytes by removing repetition, so it takes less space and less time to send.
- zlib — A widely used C library for DEFLATE and gzip compression; in Node.js, node:zlib also provides Brotli.
Taught in
- Native Compression: node:zlib & Streaming Codecs — Node.js Internals & Backend Services