在浏览器显示请求的页面之前单击多个链接时会发生什么
假设我打开一个浏览器窗口,单击“天气”链接,但网络速度很慢,在服务器向我发回任何内容之前,我单击了另一个体育链接。
我最终会得到哪一页?
因为第二个 httprequest 可能比第一个 httprequest 更早到达服务器。服务器可能会先发回第二个http请求的响应,所以我的浏览器将显示天气页面而不是体育页面?
既然有两个响应,浏览器如何处理它们?浏览器是否可以自动显示天气页面并稍后显示体育页面?
say I open a browser window, click weather link , but the network is slow, before the server send me back anything, I click another sport link.
which page will I get eventually?
since the second httprequest may arrive the server earlier than the first one. and server will may send back the response for the second httprequest first, so my browser will display weather page instead of sport page?
since there are two response, how does browser handle them? is that possible browser dispay weather page and later dispaly sport page automatically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅有关响应时浏览器行为的问题是从服务器发送的,用于回答类似的问题。
See Question regarding browser behavior when a response is sent from a server for a similar question which was answered.