Brotli Configuration
Brotli Configuration¶
Configuration Scenario¶
Google believes that internet users' time is valuable and should not be wasted on lengthy webpage loading. Therefore, in September 2015, Google introduced the lossless compression algorithm Brotli. Brotli performs data compression through a variant of the LZ77 algorithm, Huffman coding, and second-order context modeling, achieving higher compression efficiency compared to other compression algorithms.
According to Google's research report, the Brotli compression algorithm has several characteristics, with the following three being the most typical:
- For common web resource content, Brotli's performance improves by 17-25% compared to Gzip;
- When Brotli's compression level is set to 1, its compression ratio is higher than Gzip's maximum compression level (9);
- Brotli still provides very high compression rates when processing different HTML documents.
Configuration Guide¶
View Configuration¶
Log in to Cloud Protection, select [Domain Management] from the menu bar, click [Manage] on the right side of the domain name to enter the domain configuration page. Under [Advanced Configuration], you can see the Brotli configuration, which is disabled by default:
Enable Brotli¶
Click the toggle switch next to Brotli to enable Brotli compression, as shown:
Disable Brotli¶
Click the toggle switch next to Brotli to disable Brotli compression, as shown:
Search Engine Bots¶
Enabling search engine bot blocking will automatically block crawler operations from major search engines.