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

r=radha, sr=rpotts
This commit is contained in:
darin@netscape.com
2001-10-13 01:03:59 +00:00
parent eacc2422be
commit e65927e787

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) {