View all Products Close Menu Menu
Optimize your website using gzip file compression
Updated Thursday January 28th 2021 / Category Web Hosting

What is gzip compression?

Compression makes your files smaller, which in turn helps your website load faster.

That was very brief, right? We could have written a longer explanation – you could say that’s what compression looks like.

Using cPanel’s Optimize Website tool

  1. Log in to your cPanel hosting service.
  2. Click the icon for Optimize Website, found under the Software header.
  3. Change the radio button from Disabled to Compress All Content.
    • Alternatively, you can specify the only MIME types you would like to compress.
      You can find the names of these MIME types in ‘Alternative method’ the code below.
  4. Click Update Settings to finalise the changes.

Alternative method – editing the .htaccess file

Alternatively, if you are familiar with your .htaccess file and would like to manually enter the code, you can use the following to identify the code needed for each MIME type, as well as the opening and closing tags.

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE image/jpeg
AddOutputFilterByType DEFLATE image/png
AddOutputFilterByType DEFLATE image/gif
AddOutputFilterByType DEFLATE image/bmp
AddOutputFilterByType DEFLATE image/jpeg,
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE audio/mpeg
AddOutputFilterByType DEFLATE audio/*
AddOutputFilterByType DEFLATE video/mp4
</IfModule>

Can’t find the answers you're looking for? Check out these other methods of support!