多Ajax请求的URL相同 [英] Multiple Ajax requests for same URL

查看:127
本文介绍了多Ajax请求的URL相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行异步调用的相同的URL多​​次,但响应的顺序来。请参阅所附的图像,该请求已启动第一次请求完成后,才,同样的事情发生了subsquent请求。

I make asynchronous call for same URL for multiple times, But the response came as sequentially. Please see the attached image, The request has been started only after first request completes, the same happening for subsquent requests.

但是如果URL是不同的反应是不连续的。请证实我,如果一个网址被要求,不能让火狐对同一URL另一个请求?

But If the URL is different the responses are not sequential. Please confirm me if one URL is being requested, wouldn't firefox make another request for same URL?

推荐答案

Necko的缓存只能处理每个缓存条目一位作家。因此如果对同一URL的多个请求,第一个将打开用于写入的高速缓存条目和后来的将阻止在高速缓存条目打开状态,直到第一个饰面。有工作正在进行重新构建缓存来取消这一限制。

Necko's cache can only handle one writer per cache entry. So if you make multiple requests for the same URL, the first one will open the cache entry for writing and the later ones will block on the cache entry open until the first one finishes. There's work ongoing to rearchitect the cache to remove this restriction.

这篇关于多Ajax请求的URL相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆