fixes bug 104181 "SH should not store layout state if server sends Cache-control: no-cache"

r=radha, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@105333 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2001-10-13 01:03:59 +00:00
parent a1d1de1a68
commit d394a62ae4

View File

@@ -5507,7 +5507,7 @@ nsDocShell::AddToSessionHistory(nsIURI * aURI,
* HistoryLayoutState. By default, SH will set this
* flag to PR_TRUE and save HistoryLayoutState.
*/
if (PL_strcasestr(val, "no-store")) {
if (val && (PL_strcasestr(val, "no-store") || PL_strcasestr(val, "no-cache"))) {
entry->SetSaveLayoutStateFlag(PR_FALSE);
}
if (cacheToken) {