git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8527152
)
thumb: indicate 1 month caching of generated output
author
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 12 Jul 2019 00:35:46 +0000
(
02:35
+0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Fri, 12 Jul 2019 02:18:16 +0000
(
04:18
+0200)
Same header as set by Apache for static results.
thumb/index.php
patch
|
blob
|
history
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;