Search the articles in our knowledge base!

How to enable gZIP compression for your pages?

The gZIP compression of your files improves the performance of your website and highly decreases its loading time.

Some applications have internal support to compress their pages. For example, in Joomla you can turn on the Gzip compression from Global Configuration > Server > Gzip Page Compression set to Yes.

You can test whether the compression is working by using this useful tool -

If you are not using a web application that has internal methods for enabling the compression, you can enable it directly from your cPanel > Optimize Website.

Alternatively, you can add the following lines to your .htaccess file:

Basically, the user makes a request for your website, the server compresses your page (this significantly reduces its size) and transfers it to the customer's computer. On the visitor's end the file is being decompressed and visualized. The time needed for file compression is much less than the time to transfer a big file over the Internet.

VN:F [1.9.22_1171]
Rating: 3.9/5 (7 votes cast)
How to enable gZIP compression for your pages?, Rating 3.9 out of 5 based on 7 votes