How to Enable GZIP Compression in WordPress Site

Do you want to enable GZIP compression in your WordPress site? GZIP compression reduce your webpage size and significantly improves your website loading speed. Today in this article we will tell you how to enable GZIP compression in WordPress.

How to Enable GZIP Compression in WordPress Site


By enabling GZIP compression on your site you can reduce the page size by 70%. Here we will tell you 4 method to enable GZIP compression.

So, let's get started.....

1. W3 Total Cache


W3 Total Cache is a most popular cache plugin in WordPress repository and if you use the W3 Total Cache plugin, you can easily enable Gzip Compression on your website or blog. Click on Performance >> Browser Cache and check Enable HTTP (gzip) compression.

How to Enable GZIP Compression in WordPress Site

2. WP Super Cache


WP Super Cache is the second most popular cache plugin in the WordPress repository. If you use it on your blog, click on Settings >> WP Super Cache >> Advanced tab and check "Compress pages so they’re served more quickly to visitors". You can see in the screenshot.

How to Enable GZIP Compression in WordPress Site

3. WP Fastest Cache


This is also a very good and popular caching plugin that greatly improve your website loading speed. If you use WP Fastest Cache on your blog, you can easily enable Gzip compression in WordPress site. Simply click on WP Fastest Cache menu and check Gzip option.

How to Enable GZIP Compression in WordPress Site

4. Enable Gzip Compression via .htaccess


You can also enable Gzip compression on your site with the help of .htaccess file. Simply add the given code to the .htaccess file
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png

You can use Yoast SEO or cPanel to edit .htaccess file or you can read this article on ShoutMeLoud to edit the .htaccess file - How To Edit WordPress .htaccess File

Now, if you want to check whether your site is serving Gzip compression, you can check it by going to checkgzipcompression.com.

Find this article helpful? Don't forget to share!

Comments

Popular posts from this blog

Fix Submitted URL marked ‘noindex’ in Google Search Console Tool 2018

Keep these 12 things in mind before applying to Google AdSense

Best Autoptimize Settings 2019 (Updated)