Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set up apache2 to serve gziped files

AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript application/json
   BrowserMatch ^Mozilla/4 gzip-only-text/html
   BrowserMatch ^Mozilla/4.0[678] no-gzip
   BrowserMatch bMSIE !no-gzip !gzip-only-text/html
   DeflateCompressionLevel 9
   SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0

It works perfectly when I test file on safari or chrome, or event with curl (curl --header 'accept-encoding: gzip' url), but it doesn't seem to work on IE7.

I tested with

Am I doing something wrong ?


share|improve this question
up vote 1 down vote accepted

This would be the problem. You are explicitly telling it not to gzip for MSIE (Microsoft Internet Explorer) browsers.

"BrowserMatch bMSIE !no-gzip !gzip-only-text/html"

Looks like you are using the default rules. MSIE 5.5 and 6 had problem with gzip for which the fix was to not zip the content when serving to those browsers.

The link below should help you understand it better.

share|improve this answer

You can fix this very easily be having it match everything under 7; replace your match with:

BrowserMatch \bMSIE\s7  !no-gzip !gzip-only-text/html

This will keep it enabled for IE7 and on.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.