Bug 748647 - INHIBIT_PERSISTENT_CACHING was set to early, r=michal

This commit is contained in:
Honza Bambas 2012-05-09 14:58:39 +02:00
parent d68bf1a175
commit 417b4ef069

View File

@ -1024,8 +1024,6 @@ nsHttpChannel::ProcessResponse()
LOG(("nsHttpChannel::ProcessResponse [this=%p httpStatus=%u]\n",
this, httpStatus));
UpdateInhibitPersistentCachingFlag();
if (mTransaction->SSLConnectFailed()) {
if (!ShouldSSLProxyResponseContinue(httpStatus))
return ProcessFailedSSLConnect(httpStatus);
@ -1273,6 +1271,8 @@ nsHttpChannel::ContinueProcessNormal(nsresult rv)
ClearBogusContentEncodingIfNeeded();
UpdateInhibitPersistentCachingFlag();
// this must be called before firing OnStartRequest, since http clients,
// such as imagelib, expect our cache entry to already have the correct
// expiration time (bug 87710).