0

I can't get static or dynamic compression to work on a new server for .ASP, .JS or .CSS files.

I'm running Windows Server 2008 R2 Standard 64 bit. Under IIS Role Services, I have ASP installed, as well as static and dynamic compression. I'm using DefaultAppPool with the standard ApplicationPoolIdentity. I've enabled all the compression options for the site.

Here's the relevant section of my applicationHost.config (this is all under 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/x-javascript" enabled="true" />
        <add mimeType="*/*" enabled="false" />
    </dynamicTypes>
    <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="false" />
    </staticTypes>
</httpCompression>

<serverRuntime frequentHitThreshold="1" />

<urlCompression doDynamicCompression="true" doStaticCompression="true" dynamicCompressionBeforeCache="true" />

So I turned on failed request tracing to get a better view.

For ASP, it appears to skip static and dynamic compression entirely. There is no entry for DYNAMIC_COMPRESSION_SUCCESS or DYNAMIC COMPRESSION_NOT_SUCCESS.

For CSS and JS, it attempts static compression but fails:

STATIC_COMPRESSION_NOT_SUCCESS     Reason="NO_MATCHING_SCHEME"

I can't find any solid documentation online about what NO_MATCHING_SCHEME means. Help!

Humtron
  • 1
  • 1

1 Answers1

0

Probably you have application pool configured to use Classic mode:

Some settings in the system.webServer section apply only to IIS 7.0 Integrated mode and do not apply to Classic mode.

Try to set up compression via IIS Manager UI.

Artem Koshelev
  • 10,548
  • 4
  • 36
  • 68
  • DefaultAppPool is configured to Integrated. I've tried switching it to classic and it makes no difference. http://stackoverflow.com/questions/4662764/dynamic-compression-not-working-iis-7-5 is actually very similar to my problem... I get the same status messages for dynamic compression on the ASP files when I do failed request tracing. – Humtron Oct 14 '11 at 13:10
  • Also, I've set up compression via IIS Manager UI, and finally resorted to trying to tweak applicationHost.config. No luck either way. I'm wondering if config file is screwed up. Can anyone send me a applicationHost.config from a server with working static/dynamic compression? – Humtron Oct 14 '11 at 13:14