N°3423 - Allow AttributeImage / AttributeDocument content to be cached by the browser (console)

This commit is contained in:
Eric
2021-01-21 10:44:23 +01:00
parent 1fb15a421a
commit 26f800d488
5 changed files with 22 additions and 13 deletions

View File

@@ -727,6 +727,13 @@ class WebPage implements Page
$this->add_header('Expires: 0');
}
public function set_cache($iCacheSec)
{
$this->add_header("Cache-Control: max-age=$iCacheSec");
$this->add_header("Pragma: cache");
$this->add_header("Expires: ");
}
/**
* Build a special kind of TABLE useful for displaying the details of an object from a hash array of data
*