git.cweiske.de
/
phancap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
send expiry header for redirects
[phancap.git]
/
www
/
get.php
diff --git
a/www/get.php
b/www/get.php
index 15463e43359cdd3140343dcc49b9eaf758ea518a..739aaf82ff6b97b443613729403e2c95cef63c1b 100644
(file)
--- a/
www/get.php
+++ b/
www/get.php
@@
-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());