git.shiar.nl
/
minimedit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thumb: indicate 1 month caching of generated output
[minimedit.git]
/
thumb
/
index.php
diff --git
a/thumb/index.php
b/thumb/index.php
index f15a180b1e8e89983eea66d5430f7ee7fc19e159..aadbf4f91eb664d1abc0109ca477d5e4aa71559c 100644
(file)
--- a/
thumb/index.php
+++ b/
thumb/index.php
@@
-28,6
+28,7
@@
catch (Throwable $e) {
exit;
}
+header('Cache-Control: max-age=2628000, immutable');
header('Content-type: '.mime_content_type($target));
readfile($target);
exit;