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.
Any ideas? Thanks!
<!-- 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"/>
Viewing 15 lines of 20 lines. View entire code block.
Any ideas? Thanks!