Brotli is a Google developed algorithm for compressing data without losing any information (lossless). It combines techniques like LZ77 (finding repeating patterns), Huffman coding (efficient representation of symbols), and context modelling to achieve superior compression compared to older compression methods like gzip. You can use both compression methods enabled, modern browsers that support both methods will prefer and serve Brotli over gzip.
- Login to your hosting control panel.
- Click on the website you wish to enable Brotli on.
- Click Advanced, Developer tools.
- Under the heading PHP extensions, toggle the Brotli button.
- That’s it Brotli is enabled on your website.