I was looking at the compression of content returned from my IIS7 websites and compressions is generally working well EXCEPT for the case of detailed error messages, such as 404 errors.
The 404 errors have a content-type of "text/html; charset=utf-8", which is different than most of the content returned by my asp and asp.net pages ("text/html").
It seemed it might be just as easy as adding another MIMEtype to account for the utf-8 charset, but alas that doesn't seem to be doing it for me. Any ideas of what I need to do to get 404 errors to be sent back compressed?
Here are the current compression settings I have which are working great for everything except the 404 errors:
<httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" dynamicCompressionLevel="6" staticCompressionLevel="9" />
<dynamicTypes>
<add mimeType="text/*" enabled="true" />
<add mimeType="text/html; charset=utf-8" 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="text/html; charset=utf-8" enabled="true" />
<add mimeType="message/*" enabled="true" />
<add mimeType="application/javascript" enabled="true" />
<add mimeType="*/*" enabled="false" />
</staticTypes>
</httpCompression>
Thanks, Phil