How to enable HTTP Compression?

Discussion in 'Windows / IIS' started by fvilers, Nov 12, 2011.

  1. Hi all,

    I'm trying to enable HTTP Compression at the web.config level but can't get my CSS or JS file compressed.

    I've added this sample configuration found at on the IIS web site:

    Code:
    <httpCompression
      directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
    <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
    <dynamicTypes>
      <add mimeType="text/css" enabled="true" />
      <add mimeType="application/x-javascript" enabled="true" />
    </dynamicTypes>
    <staticTypes>
      <add mimeType="text/css" enabled="true" />
      <add mimeType="application/x-javascript" enabled="true" />
    </staticTypes>
    </httpCompression>
    But this seems to not work. Any tips?

    Thanks a lot in advance,
    Fabian
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

Share This Page