๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Web Development Intermediate

What is Brotli Compression?

A modern compression algorithm developed by Google that achieves better compression ratios than Gzip for web content delivery.

Brotli (br) compresses web assets 15-25% better than Gzip at comparable speed. It uses a combination of LZ77, Huffman coding, and a built-in dictionary of common web content patterns (HTML tags, CSS properties, JavaScript keywords). Most modern browsers support Brotli via the Accept-Encoding: br header. Web servers like Nginx (ngx_brotli module), Apache (mod_brotli), and CDNs (Cloudflare, Fastly) support Brotli compression. Brotli levels 1-4 are suitable for dynamic compression, while levels 5-11 are for static pre-compression. The built-in dictionary gives Brotli a significant advantage for small files where Gzip struggles to find patterns.

Related Terms

Webhook
A mechanism where a server sends real-time HTTP POST notifications to a specified URL when specific events occur.
SPA (Single Page Application)
A web application that loads a single HTML page and dynamically updates content without full page reloads.
CSS Grid
A two-dimensional CSS layout system for creating complex grid-based designs with rows and columns.
Canonical URL
An HTML element that tells search engines which URL is the preferred version of a page when duplicate or similar content exists at multiple URLs.
Caching
Storing copies of frequently accessed data in faster storage to reduce load times and server processing.
PHP
A widely-used server-side scripting language designed for web development that powers over 75% of websites including WordPress.
View All Web Development Terms โ†’