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.

  1. Auto-content compression through Origin Shield
  2. Content compression through CDN
You need to set the target domain from the ‘ Operation level panel’.

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, click the ‘Settings’ (gear) icon to configure the setting.

Turning on the ‘Status’ switch will enable the Gzip compression.

Checking the ‘Brotli first’ box will enable both Brotli and Gzip compression. However, the Brotli compression will be prioritized.

This feature is an Origin Shield performance enhancement feature. Hence, you need to activate the Origin Shield first. Follow this link to learn how to activate Origin Shield.

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’.