disable/enable gzip compression, via .htaccess?

furimedia

Well-Known Member
#1
anyone know how i can disable or enable gzip compression via .htaccess?

it seems once i set it enabled on the LS, there is no way to turn this off client side?
 

mistwang

LiteSpeed Staff
#2
Use a rewrite rule in .htaccess to disable it

RewriteRule . - [E=no-gzip:1]

Above rule will disable it globally. however, you can customize the rewrite to disable gzip selectively.
 
#4
disable zlib output compression

Use a rewrite rule in .htaccess to disable it

RewriteRule . - [E=no-gzip:1]

Above rule will disable it globally. however, you can customize the rewrite to disable gzip selectively.
I am setting up w3 total cache on my sites and it seems to require that the zlib output compression be turned off. I applied this to my .htaccess and while the site did continue working w3 total cache still says that it is on. Any suggestions to a novice in using .htaccess or changing the PHP files?
 
Top