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 have searched around and havent really found an answer anywhere and this is still not working for me. I am using compression in IIS7 and it doesn't appear to be working. The code I am using is per

      doStaticCompression="true" />
      directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
      <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
        <add mimeType="text/*" enabled="true" />
        <add mimeType="message/*" enabled="true" />
        <add mimeType="application/javascript" enabled="true" />
        <add mimeType="*/*" enabled="false" />

However my content is still not being gzipped ? Any ideas why this is happening ?


share|improve this question
anyone can help ? – Thomas Sep 1 '09 at 15:01
You need to be a little more patient. You can't expect your every query to be responded to in 25 minutes or less... It would also help if you provide more detail. What content is not being compressed? How are you testing the compression result (i.e. which client programs and/or services)? – David Spillett Sep 1 '09 at 15:08
Question appears on StackOverflow a lot:… and… and – David d C e Freitas Apr 29 '11 at 14:47

What content are you expecting to be compressed? Plain HTML files, script output, CSS, JS, ...? The section of configuration above is only for static compression so will not be affecting dynamic content such as the output from ASP.NET or "classic ASP" scripts - there are separate options for dynamic content.

Also: ensure that the directory listed for storing the compressed static files exists and does not have permissions that would stop IIS writing to it.

share|improve this answer
hey thx for the response. mainly just CSS & JS? I am testing the compression result in FF using Google PageSpeed / YSlow - both return that the compression isnt enabled ? – Thomas Sep 1 '09 at 15:12

Are you behind a proxy? I've seen HTTP proxies sending uncompressed responses to the clients.

share|improve this answer

Your Answer


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