How to enable content compression?
Mlytics offers Gzip and Brotli compression algorithms to compress static content. This feature will reduce latency, hence improving the performance of your website.
Gzip is originally designed to compress files, while Brotli is specifically designed to compress streams. Brotli is faster at both compressing content on the server and decompressing it in the browser than Gzip.
There are 2 ways to enable content compression on Mlytics platform.
- Auto-content compression through Origin Shield
- Content compression through CDN
Auto-content compression through Origin Shield
This method employs both Brotli and Gzip compression on the Origin Shield level, and will cache the compressed file or Origin Shield.
To enable auto-content compression through Origin Shield, navigate to ‘ Multi CDN’ > ‘General settings’ > ‘Content compression’.
On the ‘Content compression’ box, select the option that you prefer.
Selecting ‘Gzip’ will enable the Gzip compression only.
Selecting ‘Gzip, Brotli first’ will enable the Gzip and Brotli compression, however, the Brotli compression will be prioritized.
Content compression through CDN
This method employs Gzip compression on the CDN level, and will cache the compressed file in the CDN.
To enable content compression through CDN, navigate to ‘ Multi CDN’ > ‘CDN Management’.
Then, click the ‘CDN Settings’ (gear) button on the top right.
Press ‘On’ under the ‘Content compression (CDN)’ section to activate Gzip compression, and finally press ‘Save’.
Below is the list of extensions that will be compressed by Gzip and Brotli: