[gtranslate]

gzip-compression

Best Ways to Enable GZIP Compression in WordPress

gzip-compression

Speed Up your WordPress website with Gzip compression. Save Bandwidth and increase website speed simply by enabling compression with GZIP.This can be done through .htaccess file and other ways also.

GZIP Compression

Compress HTML and CSS with GZIP to save file size up to 90 percent. Which results in your website page load fast. Moreover, you are saving bandwidth. Website Speed is one of the SEO concepts, fast loading websites will get better keyword rankings in Google Search engine result page.

What is GZIP Compression?

GZIP compression is essentially a command which is done by the hosting server of your website, to compress all of the contents of your website before sending it to the visitor. It is an algorithm which uses technology similar to zipping files on your computer, making them smaller.
By making the files such as text and images smaller, they take much less time to travel from your website to the visitor. If you would like to learn more about Gzip compression, visit this article by Collectively.

Read More About: 3 Methods to Enable GZIP Compression

ENABLE GZIP COMPRESSION THROUGH .HTACCESS

Basically .htaccess file controls many important things for your website.If you are not familiar with .htaccess file, learn about it and use with caution.Add the following code to your WordPress website .htaccess file.You can access this file under file manager with Server login credentials or WordPress SEO by Yoast plugin.

mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

ENABLE GZIP COMPRESSION WITH W3 TOTAL CACHE.

WP Super Cache and W3 total cache are most popular WordPress cache plugins, if you are using W3 total cache, then it’s very easy to enable GZIP compression with inbuilt Browser cache option.

GZIP COMPRESSION WITH WORDPRESS PLUGIN

If you are not using W3 Total cache and not familiar with .htaccess, then go for the alternate method of installing a WordPress plugin.WP HTTP Compression plugin allows your WordPress blog to output pages compressed in gzip format if a browser supports compression.

GZIP COMPRESSION TEST SITES

Verify Gzip Compression test online with HTTP compression test tool and Check GZIP compression tool.