diff --git a/netwerk/protocol/http/src/nsHttpChannel.cpp b/netwerk/protocol/http/src/nsHttpChannel.cpp index 5c5b1ca7fc6..10e24987b00 100644 --- a/netwerk/protocol/http/src/nsHttpChannel.cpp +++ b/netwerk/protocol/http/src/nsHttpChannel.cpp @@ -2270,7 +2270,7 @@ nsHttpChannel::GetCacheAsFile(PRBool *value) NS_IMETHODIMP nsHttpChannel::SetCacheAsFile(PRBool value) { - if (!mCacheEntry) + if (!mCacheEntry || mLoadFlags & INHIBIT_PERSISTENT_CACHING) return NS_ERROR_NOT_AVAILABLE; nsCacheStoragePolicy policy; if (value)