Trying to figure out why IIS7 will not honor the minfilesizeforcomp setting for http compression. Right now, I'm compressing JSON data that sometimes is as small as 77 bytes all the way "down" to 151 bytes - obviously a less than optimal use of CPU cycles and bandwidth..... My minimum setting is 1024 bytes.
I have not tested but I've seen others complain that they couldn't get this setting to be honored for static files either, although I have not tested this myself.
Below is the relevant xml from applicationHost.config
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files" minFileSizeForComp="1024">
<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="application/json" enabled="true" />
<add mimeType="application/json; charset=utf-8" enabled="true" />
<add mimeType="*/*" enabled="false" />
</dynamicTypes>
<staticTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
Any ideas or alternatives???