GZip Compression when on IIS

Permalink
I'm using a windows virtual hosting instance and I have added the code below to my web.config file, but the site is still not showing as compressed when checking it at one of the utility sites on the web.

<!-- Define your compression directory -->
  <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
    <!-- References a DLL that will handle your gzipping -->
    <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll"/>
    <!-- Setting specific dynamic types for enabled gzipping -->
    <dynamicTypes>
      <add mimeType="text/*" enabled="true"/>
      <add mimeType="message/*" enabled="true"/>
      <add mimeType="application/javascript" enabled="true"/>
      <add mimeType="*/*" enabled="false"/>
    </dynamicTypes>
    <!-- Set gzipping for static types -->
    <staticTypes>
      <add mimeType="text/*" enabled="true"/>
      <add mimeType="message/*" enabled="true"/>


Any ideas? Thanks!

Deladroid
 
Deladroid replied on at Permalink Best Answer Reply
Deladroid
Found answer elsewhere. Had to install Dynamic Content Compression on the server then enable it by ticking it under Server features add-ons.