diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2010-10-25 14:40:42 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2010-10-25 14:40:42 +0200 |
commit | a29cb8536113fb389ee0a760c8c0ffe2f418acb7 (patch) | |
tree | a464f305741901d03b68da0447351829159e03c4 | |
parent | 8a7e7e8aa0b418b781a8fed533598d70d5695a7d (diff) |
[Cache] uses access time instead of modification time for Cache Expiration
-rw-r--r-- | BigLine.php | 4 |
1 files 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"); |