You are viewing the legacy StackPath SecureCDN Help Center. Please use support.stackpath.com if you signed up after July 1, 2018 or log in through control.stackpath.com

StackPath Support

Enabling Gzip Compression: StackPath CDN

Compressing static assets with gzip compression reduces bandwidth usage and improves page load time. Most modern web browsers support gzip compression for static assets such as HTML, CSS and JavaScript.

Depending on your web server, gzip can be enabled on your origin server and on StackPath's SecureCDN servers. This tutorial shows how to enable it on the latter.

  1.  Select Sites in the left-hand menu:

    Control panel navigation 

  2. Click the + icon next to the Site Name to display the sites.

  3. For the site you want to enable gzip on, click Manage. Then select Settings in the dropdown menu:

    Gzip site settings

  4. in the Edge Settings section, find the option called Compression and tick the box next to it:

    StackPath Edge Settings

  5. There is also an option called Advanced Compression Level

    Gzip has various compression levels (1 being the lowest). On StackPath you can select a compression level from 1 to 6. By default the compression level is set to 1.

  6. If you want to select a compression level other than 1, tick the box next to Advanced Compression Level and select a new compression level.

    Make sure the box next to Compression is also ticked.

  7. Click Update.

Return to top