如何使用gzip压缩来使用IIS URL重写

我一直在尝试在Windows 2008 R2上的IIS 7.5上创build具有静态HTML页面和压缩function的站点的出站规则。

如果我有任何forms的压缩启用(静态或dynamic),我得到这个错误:

HTTP Error 500.52 - URL Rewrite Module Error. Outbound rewrite rules cannot be applied when the content of the HTTP response is encoded ("gzip"). 

closures压缩不是一个真正的select,因为对页面加载性能有很大的负面影响。

我想象使用出站重写规则的任何人都会遇到这个错误,因为你总是希望为文本内容启用压缩。

我已经看了一些build议,让这个工作:

https://stackoverflow.com/questions/3713804/url-rewrite-outbound-rules-iis7/4363301#4363301

http://forums.iis.net/p/1165899/1937454.aspx#1937454

但我仍然得到同样的错误。

有没有人得到这个工作? 如果这样怎么样?