How to disable the GZIP compression on your website

GZIP compression is enabled by default for all servers.

There may be times where you would prefer that the GZIP compression is disabled. To do this, you simply need to edit your public_html/.htaccess file and add the following line:

SetEnv no-gzip dont-vary

If you prefer to only disable the GZIP compression for a specific file, then add this line instead:

SetEnvIfNoCase Request_URI my_file_name\.php$ no-gzip dont-vary

If you prefer to only disable the GZIP compression for a specific file type, then add this line instead:

SetEnvIfNoCase Request_URI "\.php$" no-gzip dont-vary

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Create Custom Error Pages

This tutorial will teach how to create custom Error Pages. Create error pages for 404 Not Found...

How To Install and Uninstall FrontPage Extensions

This tutorial will show you how to install and uninstall FrontPage extensions. Please note that...

How To Set Up A Cron Job

This tutorial is going to show you how to setup a cron job in cPanel the easy way. You can set a...

Using Index Manager

This tutorial will teach about using the Index Manager. The Index Manager allows you to...

Commonly Used Port Numbers

This is a list of commonly used ports, and does not include all possible ports that may be opened...

Powered by WHMCompleteSolution