4

I have enabled GZip compression via web.config with many helps from another question: Enable IIS7 gzip

I have tested the compression with Live HTTP Headers plugin in FF, and it correctly shows

Content-Encoding: gzip

I have added the following code to my web.config:

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

But is it correct that this code only compress the javascripts and not the CSS, Images and ASP documents?

Community
  • 1
  • 1
MicBehrens
  • 1,710
  • 6
  • 32
  • 55

1 Answers1

2

Apparently I'm just not that bright... It does zip everything after all ;)

MicBehrens
  • 1,710
  • 6
  • 32
  • 55