From 4c264d97de3695ef43cfd81ba98d058cce95d4a8 Mon Sep 17 00:00:00 2001 From: Honza Bambas Date: Fri, 4 Apr 2014 14:42:06 +0200 Subject: [PATCH] Bug 984994 - Reintroduce 'network.http.use-cache' pref, r=jduell --- 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 f0c37d47946..f7dd8f180df 100644 --- a/netwerk/protocol/http/nsHttpChannel.cpp +++ b/netwerk/protocol/http/nsHttpChannel.cpp @@ -315,6 +315,10 @@ nsHttpChannel::Connect() return NS_ERROR_DOCUMENT_NOT_CACHED; } + if (!gHttpHandler->UseCache()) { + return ContinueConnect(); + } + // open a cache entry for this channel... rv = OpenCacheEntry(usingSSL);