奇怪的行为(ajax长轮询通道)“拒绝”从普通浏览器连接?
当您复制此链接
http://q55.queue.vkontakte.ru/im639
并将其放置到当前浏览器选项卡时,按 Enter 键,它会“加载”,地址发生变化,但内容仍然相同(您仍然处于这个问题中)。那是什么?这是程序化行为吗?
When you copy this link
http://q55.queue.vkontakte.ru/im639
and place it to currect browser tab, press enter, it does "load", address changes, but content is still the same (you're still in this question). What's that? Is that programmatical behavior ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我什么也没看到。它不执行任何操作,因为没有任何可用的东西。
我们得到状态码
HTTP/1.1 204 No Content
而且这与长轮询无关,因为连接根本没有挂起。 URL 看起来像是指向一个图像。我无法想象您应该进行长轮询来检索简单的图像。
I am not seeing anything. It does not do anything because nothing is available.
We get status code
HTTP/1.1 204 No Content
Also this has nothing to do with long-polling, because the connection is not hanging at all. It looks like the URL is pointing to an image. I can not image you should be doing long-polling for retrieving a simple image.
服务器响应 204。请参阅here 解释了在 204 服务器响应上:
The server responds with a 204. See here which explains that on a 204 server response: