From a29cb8536113fb389ee0a760c8c0ffe2f418acb7 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 25 Oct 2010 14:40:42 +0200 Subject: [Cache] uses access time instead of modification time for Cache Expiration --- BigLine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BigLine.php b/BigLine.php index 4e5c65a..b29b01a 100644 --- a/BigLine.php +++ b/BigLine.php @@ -74,7 +74,7 @@ if (is_file($Cache)) } /*----------------------------------------------------------- - Ok, now we are ready to create the image with GD. + Ok, now we are ready to create the image with GD. */ $playcount = $data['playcount']; @@ -247,7 +247,7 @@ function SendCacheHeaders($lastmodified, $maxage, $limit="public") } /* Give a fresh copy */ - $Expires = GetGMT($lastmodified + $maxage); + $Expires = GetGMT($_SERVER[REQUEST_TIME] + $maxage); header("Cache-Control: max-age=$maxage, $limit"); header("Last-Modified: $LastModified"); header("Expires: $Expires"); -- cgit v1.2.3