Brotli is a modern compression algorithm that provides better compression ratios than Gzip, especially for text-based assets such as HTML, CSS, and JavaScript.
17.1 Overview #
Compared to Gzip, Brotli can reduce file size even further, resulting in smaller payloads and faster content delivery.
However, Brotli requires server-level support and cannot function without proper configuration on the hosting environment.
Benefits:
- Higher compression efficiency than Gzip
- Reduced payload size
- Faster content delivery
How It Works Internally #
- Uses server-level Brotli compression module
- Adds
Content-Encoding: brheader - Falls back to Gzip if Brotli is unavailable
- Automatically detects browser support via
Accept-Encodingheader
17.2 Settings #
Enable Brotli Compression #
- Toggle Brotli Compression → ON
If your server supports Brotli:
- It will activate dynamically
- SpeedyGo detects support automatically
If not supported, the feature will remain inactive.
⚠ Server Requirements:
- Apache with
mod_brotli - NGINX with Brotli module
- Hosting provider-level support
17.3 Best Practice Recommendation #
- Enable Brotli if available for maximum compression
- Keep Gzip enabled as fallback
- Verify compression using browser DevTools (Network → Content-Encoding: br)
Brotli Compression provides superior performance gains when supported by the server environment.