Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Gzip Compression in .htaccess file

Tags:

gzip

I have tried using the following code but my website is still compressed using gzip:

SetOutputFilter DEFLATE
SetEnvIfNoCase Request_URI \.(html?|txt|css|js|php|pl)$$ no-gzip dont-vary

How can I disable gzip compressions?

like image 705
rikket Avatar asked Oct 22 '25 15:10

rikket


1 Answers

Put this code in the htaccess file and save it.It worked for me.Disabled gzip compression.

RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1]

Thanks

like image 157
Sumith Harshan Avatar answered Oct 25 '25 05:10

Sumith Harshan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!