2

Unlike IIS7, in IIS6 the 'Compress application files' and 'Compress Static files' options are server wide so they apply to every website and virtual directory.

I recently enabled it server wide and I'm beginning to see more and more places where things are being compressed that I don't want -- notably dynamically created images.

Is there any kind of configuration for compression to enable or disable it for a 'web.config' based .NET application.

I have ASP.NET 1.1, ASP.NET MVC 1.0 apps running on the machine.

I've seen various 3rd party filters to compress content selectively -- is this really the best approach. These may be appropriate for me in the future but I'd rather not invest time in them now.

I'd be fine if i could just disable compression selectively for one application I have (that dynamically creates images). Is this not possible within IIS / webconfig ?

4

1 回答 1

4

看看这篇关于如何在 IIS6 中启用 HTTP 压缩的文章,它讨论了编辑 Metabase.xml 以在目录级别设置压缩。我没有尝试过,所以我不能保证这项技术,但它似乎可能有助于解决你的问题。

于 2009-03-27T02:49:17.813 回答