mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Revert N°3423 - Allow AttributeImage / AttributeDocument content to be cached by the browser + N°4029 - Caching images in chrome does not work
This commit is contained in:
@@ -902,11 +902,6 @@ JS;
|
||||
$this->add_header('Cache-control: no-cache, no-store, must-revalidate');
|
||||
$this->add_header('Pragma: no-cache');
|
||||
$this->add_header('Expires: 0');
|
||||
|
||||
// Fix bug in Symphony 3x in Response::sendHeaders() : don't replace header of page except Content-Type
|
||||
header('Cache-control: no-cache, no-store, must-revalidate');
|
||||
header('Pragma: no-cache');
|
||||
header('Expires: 0');
|
||||
}
|
||||
|
||||
public function set_cache($iCacheSec)
|
||||
@@ -914,11 +909,6 @@ JS;
|
||||
$this->add_header("Cache-Control: max-age=$iCacheSec");
|
||||
$this->add_header("Pragma: cache");
|
||||
$this->add_header("Expires: ");
|
||||
|
||||
// Fix bug in Symphony 3x in Response::sendHeaders() : don't replace header of page except Content-Type
|
||||
header("Cache-Control: max-age=$iCacheSec");
|
||||
header('Pragma: cache');
|
||||
header('Expires: ');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user