Question

On LAMP how do one turn OFF an ON gZip compression?

  • Posted December 4, 2014

Hi there,

I see by default gzip is ON. That’s sound! But what if I want turn it off? I need perform some tests and see difference between turned on and off gzip.

I found this htaccess line of code RewriteRule . - [E=no-gzip:1] Bot it seems doesn’t work…

Thank you

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi,

You can disable gzip compression by disabling the two modules that handle it:

sudo a2dismod deflate
sudo a2dismod gzip

Make sure you restart Apache after doing that:

sudo service apache2 restart

This comment has been deleted