Missing parts of the previous merge

This commit is contained in:
Molkobain
2020-10-07 15:32:18 +02:00
parent ad59e81144
commit ff3ade7d62
6 changed files with 24 additions and 10 deletions

View File

@@ -473,8 +473,10 @@ class WebPage implements Page
*/
public function no_cache()
{
$this->add_header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
$this->add_header("Expires: Fri, 17 Jul 1970 05:00:00 GMT"); // Date in the past
$this->add_header('Cache-control: no-cache, no-store, must-revalidate');
$this->add_header('Pragma: no-cache');
$this->add_header('Expires: 0');
$this->add_header('X-Frame-Options: deny');
}
/**