Bug 1198387 - Remove use-cache preference and its references. r=mcmanus

This commit is contained in:
Kalpesh Krishna
2015-09-01 01:09:00 -04:00
parent 3d46fac65c
commit 22cb4eaaa7
4 changed files with 0 additions and 17 deletions

View File

@@ -1252,9 +1252,6 @@ pref("network.http.proxy.version", "1.1"); // default
// pref("network.http.proxy.version", "1.0"); // uncomment this out in case of problems // pref("network.http.proxy.version", "1.0"); // uncomment this out in case of problems
// (required if using junkbuster proxy) // (required if using junkbuster proxy)
// enable caching of http documents
pref("network.http.use-cache", true);
// this preference can be set to override the socket type used for normal // this preference can be set to override the socket type used for normal
// HTTP traffic. an empty value indicates the normal TCP/IP socket type. // HTTP traffic. an empty value indicates the normal TCP/IP socket type.
pref("network.http.default-socket-type", ""); pref("network.http.default-socket-type", "");

View File

@@ -416,10 +416,6 @@ nsHttpChannel::Connect()
return NS_ERROR_DOCUMENT_NOT_CACHED; return NS_ERROR_DOCUMENT_NOT_CACHED;
} }
if (!gHttpHandler->UseCache()) {
return ContinueConnect();
}
// open a cache entry for this channel... // open a cache entry for this channel...
rv = OpenCacheEntry(isHttps); rv = OpenCacheEntry(isHttps);

View File

@@ -174,7 +174,6 @@ nsHttpHandler::nsHttpHandler()
, mProduct("Gecko") , mProduct("Gecko")
, mCompatFirefoxEnabled(false) , mCompatFirefoxEnabled(false)
, mUserAgentIsDirty(true) , mUserAgentIsDirty(true)
, mUseCache(true)
, mPromptTempRedirect(true) , mPromptTempRedirect(true)
, mSendSecureXSiteReferrer(true) , mSendSecureXSiteReferrer(true)
, mEnablePersistentHttpsCaching(false) , mEnablePersistentHttpsCaching(false)
@@ -1154,13 +1153,6 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
SetAcceptEncodings(acceptEncodings); SetAcceptEncodings(acceptEncodings);
} }
if (PREF_CHANGED(HTTP_PREF("use-cache"))) {
rv = prefs->GetBoolPref(HTTP_PREF("use-cache"), &cVar);
if (NS_SUCCEEDED(rv)) {
mUseCache = cVar;
}
}
if (PREF_CHANGED(HTTP_PREF("default-socket-type"))) { if (PREF_CHANGED(HTTP_PREF("default-socket-type"))) {
nsXPIDLCString sval; nsXPIDLCString sval;
rv = prefs->GetCharPref(HTTP_PREF("default-socket-type"), rv = prefs->GetCharPref(HTTP_PREF("default-socket-type"),

View File

@@ -167,7 +167,6 @@ public:
nsHttpConnectionMgr *ConnMgr() { return mConnMgr; } nsHttpConnectionMgr *ConnMgr() { return mConnMgr; }
// cache support // cache support
bool UseCache() const { return mUseCache; }
uint32_t GenerateUniqueID() { return ++mLastUniqueID; } uint32_t GenerateUniqueID() { return ++mLastUniqueID; }
uint32_t SessionStartTime() { return mSessionStartTime; } uint32_t SessionStartTime() { return mSessionStartTime; }
@@ -458,7 +457,6 @@ private:
nsXPIDLCString mUserAgentOverride; nsXPIDLCString mUserAgentOverride;
bool mUserAgentIsDirty; // true if mUserAgent should be rebuilt bool mUserAgentIsDirty; // true if mUserAgent should be rebuilt
bool mUseCache;
bool mPromptTempRedirect; bool mPromptTempRedirect;
// mSendSecureXSiteReferrer: default is false, // mSendSecureXSiteReferrer: default is false,