Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Ajax requests for same URL

Tags:

ajax

firefox

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.

enter image description here

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?

like image 628
Selvakumar Ponnusamy Avatar asked Feb 08 '12 08:02

Selvakumar Ponnusamy


1 Answers

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.

like image 51
Boris Zbarsky Avatar answered Oct 13 '22 09:10

Boris Zbarsky