From 5e4af7658568d4147c0b0271209ddea77bffca3d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 4 Apr 2012 17:42:50 +0200 Subject: [PATCH] Fix: Add cache directive for all export types --- htdocs/public/agenda/agendaexport.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/public/agenda/agendaexport.php b/htdocs/public/agenda/agendaexport.php index 4ed37d53e0a..a46b87b2ea4 100644 --- a/htdocs/public/agenda/agendaexport.php +++ b/htdocs/public/agenda/agendaexport.php @@ -152,9 +152,6 @@ if ($format == 'ical' || $format == 'vcal') if ($contenttype) header('Content-Type: '.$contenttype.($outputencoding?'; charset='.$outputencoding:'')); if ($attachment) header('Content-Disposition: attachment; filename="'.$shortfilename.'"'); - // Ajout directives pour resoudre bug IE - //header('Cache-Control: Public, must-revalidate'); - //header('Pragma: public'); if ($cachedelay) header('Cache-Control: max-age='.$cachedelay.', private, must-revalidate'); else header('Cache-Control: private, must-revalidate'); @@ -193,6 +190,8 @@ if ($format == 'rss') // Ajout directives pour resoudre bug IE //header('Cache-Control: Public, must-revalidate'); //header('Pragma: public'); + 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;