How to disable compression for specific user agents in IIS6

compressioniis-6windows-server-2003

I'm seeing some problems with IE6 (pre SP2) that seem to be related to http compression. I'd like to disable http compression just for those users. Any suggestions?

Something along the lines of this might work (but for IIS, not Apache).

Best Answer

ISAPI Rewrite runs on IIS 6.0, so the solution on that page you linked, should work:

Simply add the following lines to the global rules file (httpd.conf in your ISAPI_Rewrite installation directory):

RewriteEngine on

RewriteCond %{HTTP:User-Agent} MSIE\ [56]
RewriteCond %{HTTP:User-Agent} !SV1
RewriteCond %{REQUEST_URI} \.(css|js)$
RewriteHeader Accept-Encoding: .* $1

If you don't want to spend 99 USD for the license (I think it's worth, I used it myself on IIS 6.0), there is an open source project on CodePlex, which works in a similar way.