是否有任何限制自己使用HTTP1.0的用途? [英] Are there any use to limit yourself to HTTP1.0?
问题描述
我已经负责构建一些工具来帮助最终用户测试他们的浏览器可能无法与网站一起使用的原因。
I've been put in charge of building some tools to help end-user test why their browser might not work with a website.
我被告知为什么它可能不起作用的原因之一是需要HTTP1.1行。我查看了大多数浏览器选项,只有IE(版本6及更高版本,甚至9 )允许您禁用HTTP1.1。
Among the reason I was given to why it might not work there was this "require HTTP1.1" line. I've looked through most browser options and only IE (version 6 and up, even 9) allow you to disable HTTP1.1.
是否可以将自己限制为http1.0?
Are there any use to be able to restrict yourself to http1.0?
推荐答案
一般来说,不,你不希望客户端只提供HTTP / 1.0,因为这会降低速度。
Generally speaking, no, you don't ever want the client to only offer HTTP/1.0, as this will slow things down.
某些服务器会故意在某些响应中使用带有Keep-Alive标头的HTTP / 1.0,因为某些浏览器(例如IE6 / IE7)会允许HTTP / 1.0(四)与HTTP / 1.1(二)的更多并行连接。
Some servers will intentionally use HTTP/1.0 with a Keep-Alive header on some responses because certain browsers (e.g. IE6/IE7) will allow more parallel connections for HTTP/1.0 (four) vs. HTTP/1.1 (two).
这篇关于是否有任何限制自己使用HTTP1.0的用途?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!