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 -http://www.gidnetwork.com/tools/gzip-test.php

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.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Brute Force Attack – What it is and How to Block It

Brute-force is a method of guessing your password by trying combinations of letters, numbers and...

What is pdftoppm and is it supported by Hostlantern?

Pdftoppm is a library that handles the conversion from Portable Document Format (PDF) files to...

How to clear your Internet browser’s cookies?

Sometimes you may need to clear the cookies saved by your browser. Basically the cookies...

Hacked Website

The most common reasons for a hacked (defaced) website include: - Outdated web application....

How to clean my files from malicious code?

If your website has been hacked and malicious content has been inserted into your files, you...