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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user