ASP.NET Web 开发服务器 (WebDev.WebServer.EXE) 是否支持 HTTP/1.1 持久连接?
HTTP/1.1 指定默认情况下应使用持久连接。 我想知道 ASP.NET Web 开发服务器是否支持它们。 到目前为止,我已经看到,即使 HTTP 请求包含
Connection: Keep-Alive
标头,但响应中包含的标
Connection: close
头会强制浏览器在请求后关闭连接,而不是使用管道。 这不是一个大问题,但有一个有趣的缺点,即浏览器在每个请求之前都会进行 DNS 查找,这会显着增加页面加载时间。
最好在 Firebug 中查看(在“net”选项卡中)。
HTTP/1.1 specifies that by default persistent connections should be used.
I'm wondering if the ASP.NET Web Development Server supports them.
So far I have seen that even though an HTTP request contained
Connection: Keep-Alive
header the response contained
Connection: close
which forces the browser to close the connection after request rather then use pipelining.
It's not a big issue, but there is one interesting drawback which is the fact that the browser does DNS lookup before each request which add to the page load time significantly.
It's best seen in Firebug (in the "net" tab).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据下面的链接,卡西尼号不支持持久连接。它将始终返回 Connection: Close
重用连接
As per the link below Cassini doesn't support persistent connections. It will always return Connection: Close
Reusing Connections