Disable GZIP compression for IE6 clients

别说谁变了你拦得住时间么 提交于 2019-12-04 01:23:56

问题


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).


回答1:


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.

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.



来源:https://stackoverflow.com/questions/824704/disable-gzip-compression-for-ie6-clients

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