Skip to content
Snippets Groups Projects
Commit 2eced65d authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Use cache only if we ask it

parent 55fbbc85
No related branches found
No related tags found
No related merge requests found
......@@ -155,9 +155,8 @@ if ($format == 'ical' || $format == 'vcal')
// Ajout directives pour resoudre bug IE
//header('Cache-Control: Public, must-revalidate');
//header('Pragma: public');
// Google Agenda import tweak
header('Cache-Control: max-age=7200, private, must-revalidate');
if ($cachedelay) header('Cache-Control: max-age='.$cachedelay.', private, must-revalidate');
else header('Cache-Control: private, must-revalidate');
// Clean parameters
$outputfile=$conf->agenda->dir_temp.'/'.$filename;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment