From c59c121c80f4814d7ec805fa72aa36eefb5415c8 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Wed, 11 Mar 2015 13:00:38 -0400 Subject: [PATCH] Bug 1142124 - Never revalidate cache entries for synthesized responses. r=michal --- netwerk/protocol/http/nsHttpChannel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netwerk/protocol/http/nsHttpChannel.cpp b/netwerk/protocol/http/nsHttpChannel.cpp index 0fd7c3269be3..ede32f31e429 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -3149,6 +3149,10 @@ nsHttpChannel::OnCacheEntryCheck(nsICacheEntry* entry, nsIApplicationCache* appC mRedirectedCachekeys->AppendElement(cacheKey); } + if (doValidation && mInterceptCache == INTERCEPTED) { + doValidation = false; + } + mCachedContentIsValid = !doValidation; if (doValidation) {