IIS 7 and Above
Compression not working in IIS 7.5
Last post Sep 05, 2011 08:34 AM by lbird
Oct 31, 2009 02:45 AM|kendomonkey|LINK
static dynamic compression
iis7 compression failure
Oct 31, 2009 03:15 AM|CarlosAg|LINK
Could you let us know what the following command line shows?
appcmd.exe list config -section:httpCompression
Make sure that both static and dynamic includes something like:
Oct 31, 2009 02:18 PM|kendomonkey|LINK
Oct 31, 2009 05:19 PM|CarlosAg|LINK
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).
Oct 31, 2009 06:00 PM|kendomonkey|LINK
Sep 05, 2011 08:34 AM|lbird|LINK
Not all static files will be compressed .
Files that be requested frequently, maybe twice in 5 seconds will be compressed and the compressed file in disk will exsit for sometime.
Maybe IIS do not think files requested not frequently shoule be compressed.