mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°3416 XFrame and cache headers optimizations
* Remove XFrame header set in \WebPage::no_cache : not this method responsability, was confusing :/ * Remove no_cache() calls when already set in page constructor (ajax_page mainly) * Also calls everywhere the \WebPage::no_cache method instead of setting headers manually
This commit is contained in:
@@ -435,18 +435,16 @@ abstract class Controller
|
||||
$sFileMimeType = utils::GetFileMimeType($sFilePath);
|
||||
header('Content-Type: '.$sFileMimeType);
|
||||
|
||||
if ($bFileTransfer)
|
||||
{
|
||||
if ($bFileTransfer) {
|
||||
header('Content-Description: File Transfer');
|
||||
header('Content-Disposition: inline; filename="'.$sDownloadArchiveName);
|
||||
}
|
||||
|
||||
header('Expires: 0');
|
||||
header('Cache-Control: must-revalidate');
|
||||
header('Pragma: public');
|
||||
header('Expires: 0');
|
||||
|
||||
foreach ($aHeaders as $sKey => $sValue)
|
||||
{
|
||||
foreach ($aHeaders as $sKey => $sValue) {
|
||||
header($sKey.': '.$sValue);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user