How To Enable Gzip Compression In WordPress (Ste By Step Tutorial)

What is GZIP compression? I am sure you have faced this term while checking your website speed in Gtmetrix or Pingdom tools. I will help you to enable GZIP Compression and improve your website speed.

Yes, Gzip compression is one of the big page-speed improvement factors. And in this article, I will share with you how to check whether your website is GZIP enabled or not. And if not, what are the different ways you can enable GZIP compression in your WordPress blog.

What is GZIP Compression?

If you are not aware of the compression mechanism, then first let me tell you the basics of compression in web design. Whatever way you build your website, it is nothing but a combination of HTML, CSS, Javascript.

We all love beautiful design, awesome looking WordPress themes. But the more feature we expect the more amount of coding. That means your website file size will increase. This will directly impact your website page-speed.

To solve this problem, the compression mechanism comes into the picture. Gzip compression is nothing a compression mechanism which is easily understandable by any browser.

E.g. a browser will read your code like AAAABBBBCCC. With compression, it will simply remove the repeated staffs like characters, spaces etc. And this can be like ABC. This is just an example of how the compression mechanism works in browsers.

So, to reduce the website file size one must enable Gzip compression feature in your WordPress site. Here is the snapshot of my website’s page-speed in GTMetrix. You can see how well my website has compressed. This has a direct impact on improving page-speed.

My GTMetricx page-speed score is 100/100, although I am not able to make YSLOW as 100/100. But the overall page-speed comes below 1 second which is very much satisfactory.

How To Check Gzip Compression Is Enabled Or Not?

It is very easy to find whether your website is Gzip compression enabled or not. It will also tell you how much compression has saved your size.

Visit the website => Put your website URL & The click search button.

Here is the result of my website.

check gzip compression

When I checked my website’s GTmetrix score, I can see that Gzip compression is enabled.

enable gzip compression gtmetrix

How To Enable GZIP Compression in WordPress Website

There are a couple of ways we can do that on any WordPress website. But I will use the popular WordPress cache plugins to enable GZIP compression easily.

#1. It has to be enabled on the server (ask your web host)

My website is hosted on SiteGround and as soon as I set-up this website I have done this configuration through SiteGround(SG) Optimizer settings. SiteGround speed technology is simply awesome.

Go To SG Optimizer => Environment Optimizer => GZIP COmpression.

enable gzip compression sg optimizer

By default, it will not be enabled. Simply use the switch to enable GZIP compression for your WordPress blog.

#2. Using WP Rocket Cache Plugin

Once activated, WP Rocket adds GZIP Compression rules in your .htaccess file using the mod_deflate module.

Here is the code snapshot of my .htaccess file.

enable gzip compression wp rocket

#3. Using W3 Total Cache Plugin

If you are using W3 Total cache plug-in (best free WordPress cache plugin), then also you have tick one checkbox to enable Gzip compression for your WordPress site.

  1. Go to the W3 Total Cache Plugin Settings page.
  2. Navigate to Browser Cache option.
  3. And Check the Enable HTTP Compression option.
  4. Click on Save changes button and you are done.
enable gzip compression W3 Total Cache

If you ask me WP Rocket Vs W3 Total Cache, my vote will go with WP Rocket only as this plugin is very handy to configure and have better control to reduce page-speed. I am using WP Rocket plugin for this website and achieve a very fast loading website.

#4. WP SuperCache Plugin

WP SuperCache is another popular FREE WordPress cache plugin. I am also using this plugin for few of my websites which is working great.

enable gzip compression wp supercache

But if you compare WP Supercache Vs W3 Total Cache, I will go with W3 Total Cache. Anyway, here are the settings to enable compression for WP Supercache plugin.

  1. Go to the settings and click on WP Supercache
  2. On the first page itself in the Miscellaneous segment click on the compression option as per the below picture
  3. Click on Save changes button and you are done.


So, this is all about Gzip compressor. I am sure you understood the importance of enabling this compression. And I tried to list out all popular cache plugin-ins with which we can easily enable Gzip compression for WordPress website. If you have any further questions, then feel free to write a comment below and share your thoughts.

__CONFIG_local_colors__{"colors":{"635a9":"Accent Color","cd03b":"Border"},"gradients":{}}__CONFIG_local_colors__

Disclosure: This post may contain affiliate links, meaning that if you click on one of the links and purchase an item, we may receive a commission (at no additional cost to you). All opinions are our own and we do not accept payments for positive reviews.

Read More Articles...

Leave a Reply

Your email address will not be published. Required fields are marked

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
1 Share
1 Share
Share via
Copy link