background img
Jun 13, 2020
71 Views
0 0

How to enable gazip compression in WordPress

Written by

Do you want to enable GZIP compression in your WordPress site? GZIP reduces your webpage size and improves your website loading speed.

Today in this article I will tell you how to enable GZIP  in WordPress site.

How to Enable GZIP Compression in a WordPress Site

By enabling GZIP compression on your site, you can reduce the page size by up to 70%. Here I will tell you 4 methods for GZIP.

So let’s start…

1. W3 Total Cache (Compression)

W3 Total Cache is the most popular cache plugin in the WordPress repository. If you use the W3 Total Cache plugin, you can easily enable gzip on your website or blog.

All you have to do is click on Performance >> Browser Cache and check the Enable HTTP (gzip)  option.

compression

2. WP Super Cache

WP Super Cache is also 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 the option “Compress pages so served more quickly to visitors”.

compression

3. WP Fastest Cache

यह भी एक बहुत अच्छी और लोकप्रिय कैशिंग प्लगइन भी है जो आपकी website loading speed में काफी सुधार करता है। यदि आप अपने ब्लॉग पर WP Fastest Cache का उपयोग करते हैं, तो आप आसानी से वर्डप्रेस साइट में Gzip compression enable कर सकते हैं।

बस WP Fastest Cache menu पर क्लिक करें और Gzip option को चेक करें।

compression

4. Enable Gzip Compression via .htaccess
You can also do Gzip compression of your site with the help of .htaccess file. Just add the given code to your .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 the .htaccess file.

Here is a guide

I hope this article helped enable GZIP compression on your site.

Small request, if this article has proved helpful for you, then don’t forget to share it!

Article Tags:
Article Categories:
Plugins

Leave a Reply

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


The maximum upload file size: 300 MB.
You can upload: image, audio, video, document, text, other.
Links to YouTube, Facebook, Twitter and other services inserted in the comment text will be automatically embedded.