What options are there to selectively enable or disable IIS 6 compression

荒凉一梦 提交于 2019-12-24 01:19:20

问题


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 ?


回答1:


Take a look at this article on how to enable HTTP compression in IIS6 which talks about editing Metabase.xml to set compression at the directory level. I've not tried this so I can't vouch for the technique but it seems like it might help with your problem.



来源:https://stackoverflow.com/questions/688282/what-options-are-there-to-selectively-enable-or-disable-iis-6-compression

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!