有哪些选项可以选择性地启用或禁用 IIS 6 压缩

发布于 2024-07-16 10:34:41 字数 394 浏览 6 评论 0原文

与 IIS7 不同,在 IIS6 中,“压缩应用程序文件”和“压缩静态文件”选项是服务器范围的,因此它们适用于每个网站和虚拟目录。

我最近在服务器范围内启用了它,我开始看到越来越多的地方正在压缩我不想要的东西——特别是动态创建的图像。

是否有任何类型的压缩配置可以为基于“web.config”的 .NET 应用程序启用或禁用它。

我的计算机上运行着 ASP.NET 1.1、ASP.NET MVC 1.0 应用程序。

我见过各种第三方过滤器来选择性地压缩内容——这真的是最好的方法吗? 这些将来可能适合我,但我现在不想在它们上投入时间。

如果我可以选择性地为我拥有的一个应用程序(动态创建图像)禁用压缩,那就太好了。 这在 IIS/webconfig 中不可能吗?

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

握住你手 2024-07-23 10:34:41

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

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文