mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-30 05:09:06 +02:00
FIX: prevent use cache on browser back button
This commit is contained in:
parent
6fd2923d3b
commit
f577ecb811
@ -384,7 +384,7 @@ class HTTP {
|
|||||||
// prefer the caching information indicated through the "Cache-Control" header.
|
// prefer the caching information indicated through the "Cache-Control" header.
|
||||||
$responseHeaders["Pragma"] = "";
|
$responseHeaders["Pragma"] = "";
|
||||||
} else {
|
} else {
|
||||||
$responseHeaders["Cache-Control"] = "no-cache, max-age=0, must-revalidate, no-transform";
|
$responseHeaders["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate, no-transform";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user