Bug 567365 - allow bfcache for no-cache/https r=jduell r=bz

This commit is contained in:
Patrick McManus
2016-01-25 16:10:06 -05:00
parent bf6dfc4c8e
commit dce32babfd
2 changed files with 5 additions and 11 deletions

View File

@@ -12541,13 +12541,9 @@ nsDocShell::ShouldDiscardLayoutState(nsIHttpChannel* aChannel)
}
// figure out if SH should be saving layout state
nsCOMPtr<nsISupports> securityInfo;
bool noStore = false, noCache = false;
aChannel->GetSecurityInfo(getter_AddRefs(securityInfo));
bool noStore = false;
aChannel->IsNoStoreResponse(&noStore);
aChannel->IsNoCacheResponse(&noCache);
return (noStore || (noCache && securityInfo));
return noStore;
}
NS_IMETHODIMP