send expiry header for redirects
[phancap.git] / www / get.php
index 15463e43359cdd3140343dcc49b9eaf758ea518a..739aaf82ff6b97b443613729403e2c95cef63c1b 100644 (file)
@@ -42,6 +42,7 @@ try {
     $img = $rep->getImage($options);
     if ($config->redirect) {
         header('HTTP/1.0 302 Found');
+        header('Expires: ' . date('r', $img->getExpiryDate($options)));
         header('Location: ' . $img->getUrl());
     } else {
         header('Content-type: ' . $img->getMimeType());