禁用GZIP COM pression对IE6的客户 [英] Disable GZIP compression for IE6 clients

查看:165
本文介绍了禁用GZIP COM pression对IE6的客户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要有条件地禁用GZIP COM pression如果用户的浏览器IE6是在较大的网站几页(它挂浏览器5分钟)。服务器是IIS7,具有COM pression静态内容的开启 - 想要一个COM pression离开工作,如果用户代理是不是Mozilla的/ 4.0。 ASPX code样的人?
此外,code有条件地重定向到同一页面上的其他网站(可以创建一个COM pression另一个虚拟站点禁用),但需要通过所有参数(GET / POST)。

We need to conditionally disable GZIP compression if user's browser is IE6 (it hangs browser for 5min) in few pages of larger site. Server is IIS7 and has compression for static content turned on - want that compression left working if user agent is not Mozilla/4.0. ASPX code sample anyone? Alternatively, code to conditionally redirect to the same page on another site (could create another virtual site with compression disabled) but need to pass all parameters (GET/POST).

推荐答案

查看这页。我相信ISAPI重写可为IIS也。基本上,它需要浏览器的请求,并重写它停止声称浏览器支持gzip的,在IE5 / IE6的情况。

Check out this page. I believe ISAPI rewrite is available for IIS as well. Basically, it takes the browser's request and rewrites it to stop claiming the browser supports gzip, in the case of IE5/IE6.

记:这并不需要你有独立的gzip压缩和非gzip压缩的网页。这可能是比你的建议更好的方法,因为它减少了在问题的源头。

Take note: this does not require you to have separate gzipped and non-gzipped pages. This is probably a better approach than your proposal, since it cuts the problem at its source.

这篇关于禁用GZIP COM pression对IE6的客户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆