« Previous Next »

Answered Thread: Compression not working in IIS 7.5

Last post 10-31-2009 1:00 PM by kendomonkey. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 10-30-2009, 9:45 PM

    Compression not working in IIS 7.5

    Hi all, Really struggling with IIS 7.5 - just inherited a Windows 2008 server and can't figure this one out. I have static and dynamic compression enabled but to no effect. All of the sites are configured to compress, the correct folders in the temp location (in my case: C:\inetpub\temp\IIS Temporary Compressed Files) are there but there are no files inside. I've tested whether any static elements (eg. style sheet (text/css)) are being compressed and they're not. Neither are the .php or static .htm files I have set up for the web sites. To be honest, I'm happy to concentrate on trying to get the static compression working - I use a lot of jQuery and need the compression what with all the .js plugins :) Honestly, any help would be much appreciated. I can confirm that I've looked around and followed the very few trails there are. - Both forms of compression are enabled (the modules installed and the tick boxes ticked) - I've used the command line script to print out the compression config and that all looks correct (all settings are enabled) for both the whole config and on a site-specific basis. Sorry if any of this sounds overly-exasperated. I really am very grateful for any help :D Thank you!
  • 10-30-2009, 10:15 PM In reply to

    Re: Compression not working in IIS 7.5

    Could you let us know what the following command line shows? 

    appcmd.exe list config -section:httpCompression

    I have the feeling that you might be using IIS 7.0 and it had an issue with the way the javascript mimeType was configured.

    Make sure that both static and dynamic includes something like:

    <add mimeType="application/x-javascript" enabled="true" />

  • 10-31-2009, 9:18 AM In reply to

    Re: Compression not working in IIS 7.5

    Hi Carlos, Many thanks for helping me look into this - very much appreciated! It definitely is IIS 7.5 but hopefully there's something in the journey that'll help resolve the mystery :) Here's the result of the appcmd: <system.webServer> <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compresse d Files" minFileSizeForComp="256"> <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> <dynamicTypes> <add mimeType="text/*" enabled="true" /> <add mimeType="message/*" enabled="true" /> <add mimeType="application/x-javascript" enabled="true" /> <add mimeType="*/*" enabled="false" /> </dynamicTypes> <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> </httpCompression> </system.webServer> Thank you again for your assistance! By the way, don't want to get thrown out by the javascript requirement - it's certainly one of my aims and if it helps to focus on it that's great. Sorry for the formatting - there's probably an easy way to get it to print out <>
  • 10-31-2009, 12:19 PM In reply to

    Re: Compression not working in IIS 7.5

    Could you try using Failed Request Tracing (aka FREB) to get more data? You can enable it for "default web site" running the following commands:

    %windir%\system32\inetsrv\appcmd configure trace "Default Web Site/" /enablesite
    %windir%\system32\inetsrv\appcmd configure trace "Default Web Site/" /enable /statusCodes:"200-600"

     After that you should request the page normally, and you will find the XML log files at "c:\inetpub\logs\FailedReqLogFiles\<SITE>". Open the XML files and switch to "Compact View", you will find there the details of Static compression, search for "STATIC_COMPRESSION", and you will find more info, for example, in my case the files were not hit frequently enough to trigger the compression (If I remember at least correctly 2 times in 2 seconds).

    STATIC_COMPRESSION_NOT_SUCCESS
    Reason="NOT_FREQUENTLY_HIT"

     

  • 10-31-2009, 1:00 PM In reply to

    Answered Re: Compression not working in IIS 7.5

    Now I'm very confused - checked everything over again just now and it appears that the compression IS working now :S I wish I could feedback as to what the resolution was - but I really don't know. Nonetheless, many thanks to you CarlosAg - really appreciated the fast responses :)
Page 1 of 1 (5 items)
Microsoft Communities