2

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?

rikket
  • 2,257
  • 7
  • 45
  • 72

1 Answers1

5

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

Sumith Harshan
  • 5,998
  • 2
  • 34
  • 35
  • Where will be insert this above coding in htaccess file, Can you write a full structure of this one.I wrote RewriteEngine on RewriteRule ^(.*)$ $1 [NS,E=no-gzip:1,E=dont-vary:1] .... this is right . it is not working for me / please can you help me – mkssathya Jul 25 '17 at 11:04
  • put inside this: – Sumith Harshan Jul 26 '17 at 09:52