From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 00:35:46 +0000 (+0200) Subject: thumb: indicate 1 month caching of generated output X-Git-Tag: v4.0~2 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/d6bf8fa992cc01adc311b2ba80f29d7af466c2f3 thumb: indicate 1 month caching of generated output Same header as set by Apache for static results. --- diff --git a/thumb/index.php b/thumb/index.php index f15a180..aadbf4f 100644 --- 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;