From 2b0154e116d6355289ac07c43ce87a5096b538cf Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 Apr 2007 14:35:50 +0000 Subject: [PATCH] fixed not working caching of gradients --- calendar/inc/gradient.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/calendar/inc/gradient.php b/calendar/inc/gradient.php index 14a24a440b..113cf3689f 100644 --- a/calendar/inc/gradient.php +++ b/calendar/inc/gradient.php @@ -69,7 +69,10 @@ for ($l = 0; $l < $length; $l += $dist) } } -session_cache_limiter('public'); // allow caching +// allow caching for 7 days +header('Cache-Control: public'); +header('Expires: ' . gmdate('D, d M Y H:i:s', time()+7*24*60*60) . ' GMT'); + if (function_exists('imagegif')) { header("Content-type: image/gif");