How to Enable Brotli and Gzip Compression in Nginx on RHEL 9
Text-based HTTP responses — HTML, CSS, JavaScript, JSON, XML, SVG — compress dramatically with standard compression algorithms, often achieving 60–80% size reduction. Nginx supports two compression algorithms: gzip (built-in, universal browser support) and Brotli (via the ngx_brotli dynamic module, 15–20% better compression than gzip for text, supported by all modern browsers). Enabling compression is one […]