httpcompression

Discussion in 'General troubleshooting' started by Dell, Aug 15, 2011.

  1. So I've been reading quite a bit about speeding up page loading on the forums here and elsewhere. My understanding is that on Winhost the below code in my web.config file will do nothing because gzip is not supported. Which is fine, if true, I'm just trying to understand. So, will this code do anything? Thanks.
    Code:
    <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
                <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
                <staticTypes>
                    <add mimeType="text/*" enabled="true" />
                    <add mimeType="message/*" enabled="true" />
                    <add mimeType="application/x-javascript" enabled="true" />
                    <add mimeType="application/atom+xml" enabled="true" />
                    <add mimeType="application/xaml+xml" enabled="true" />
                    <add mimeType="*/*" enabled="true" />
                </staticTypes>
                <dynamicTypes>
                    <add mimeType="text/*" enabled="true" />
                    <add mimeType="message/*" enabled="true" />
                    <add mimeType="application/x-javascript" enabled="true" />
                    <add mimeType="*/*" enabled="true" />
                </dynamicTypes>
            </httpCompression>
     
    Last edited by a moderator: Oct 14, 2015
  2. FredC

    FredC Winhost Staff

    You should be able to compression BUT the above snippet will cause an error because:

    as a site administrator, you can only enable / disable static & dynamic compression. The cache directory and other settings are server setting.
     

Share This Page