mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 1340197 - Don't wait for concurrent HTTP cache entry when the depending load is a top-level navigation. r=michal
This commit is contained in:
parent
d58de42ec0
commit
794a11e78e
@ -4118,6 +4118,13 @@ nsHttpChannel::OnCacheEntryCheck(nsICacheEntry* entry, nsIApplicationCache* appC
|
||||
|
||||
// Ignore !(size > 0) from the resumability condition
|
||||
if (!IsResumable(size, contentLength, true)) {
|
||||
if (IsNavigation()) {
|
||||
LOG((" bypassing wait for the entry, "
|
||||
"this is a navigational load"));
|
||||
*aResult = ENTRY_NOT_WANTED;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
LOG((" wait for entry completion, "
|
||||
"response is not resumable"));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user