How to enable content compression?

VNIS 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 VNIS 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, 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.

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

For both content compression through CDN and through Origin Shield, if the origin already sent a Gzip or Brotli compressed data, neither the CDN nor the Origin Shield will perform compression again.

Below is the list of extensions that will be compressed by Gzip and Brotli:

text/richtext text/plain text/css text/x-script text/x-component text/x-java-source text/x-markdown application/javascript application/x-javascript text/javascript text/js image/x-icon image/vnd.microsoft.icon application/x-perl application/x-httpd-cgi text/xml application/xml application/xml+rss application/vnd.api+json application/x-protobuf application/json multipart/bag multipart/mixed application/xhtml+xml font/ttf font/otf font/x-woff image/svg+xml application/vnd.ms-fontobject application/ttf application/x-ttf application/otf application/x-otf application/truetype application/opentype application/x-opentype application/font-woff application/eot application/font application/font-sfnt application/wasm application/javascript-binast application/manifest+js