diff --git a/images/elephpants.php b/images/elephpants.php index 88d4185c0..f9578786f 100644 --- a/images/elephpants.php +++ b/images/elephpants.php @@ -1,5 +1,21 @@ $now) { + header("HTTP/1.1 304 Not Modified"); + exit; + } +} +$future = strtotime("+1 day", $now); +$tsstring = gmdate("D, d M Y H:i:s ", $now) . "GMT"; +header("Last-Modified: " . $tsstring); +header("Expires: " . date(DATE_RSS, $future)); + /* Simple script to serve elephpant images in json format.