Loading time of a website is one of the major issues for visitors and also for the blog and website owners. Because not everyone has high speed internet and these days contents on WebPages are just increasing. So to help our visitors to get our website load faster on their computer, we can compress text data/content using GunZip (a.k.a. gZip).
The above chart image display stats of this blog, by seeing that image you can easily understand how important and useful it is to enable gZip on your blog or website. If you are on Blogger.com platform then by default it is always enabled, if your blog or website is on self hosted server then follow the below ways.
Self Hosted WordPress
To enable gZip in Self Hosted WordPress blog you need to open Options (All Settings) page, to open that you will need to add /wp-admin/options.php after your domain name, for instance let’s say your blog domain name is example.com then you will find option page at example.com/wp-admin/options.php, their find gzipcompression option, their simple replace 0 with 1 (0 stands for false and 1 stands for true) and then click on Save Changes button at the bottom of the page.
Note: – Don’t play with that All Settings page till you are 100% not sure about. If you played with it and if something went wrong then you can lose your blog.
For Others
Add the below lines in your blog or website’s htaccess file and save it.
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/rss+xml application/xhtml+xml application/xml
</ifmodule>
# END GZIP
After you are done any of the above method, go to this site and you can check if gZip is not enabled in your website or not. By enabling gZip it will also help you to improve your Google PageSpeed rank.