Compressing your website pages and static assets on the web/hosting server is a great way to improve your site speed overall. GZIP Compression reduces the size of static asset/file/page to which it is applied subsequently making a website load faster.

Most modern browsers support compression of HTML, CSS, and JavaScript files. So if you set up your web server to deliver compressed files the majority of your readers will receive compressed files, greatly improving their delivery speed.

Additionally, having GZIP Compression enabled on the CDN’s End ensures all your compression-able files are optimized before they are delivered

GZIP Compression on a web server running Apache

Put the code below in your .htaccess file.

Note: this code is a part of the perfect .htaccess tutorial.

 

Enabling GZIP Compression on CDN (Pull/Push Zone)

To Purge the Cache for a Pull Zone, please login to your account and follow these steps:

  1. Click Manage Zones
  2. Click View Pull Zones
  3. Click Manage next the zone you wish to delete
  4. Hit the “Settings” tab.
    • Under Compression Settings, you will find a Checkbox labeled “Enable GZip Compression for the following file types“. Tick that Checkbox and hit the Update button.

Gzip