How to disable the GZIP compression on your website Print

  • 0

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


Was this answer helpful?

« Back