From d6bf8fa992cc01adc311b2ba80f29d7af466c2f3 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 02:35:46 +0200 Subject: [PATCH] thumb: indicate 1 month caching of generated output Same header as set by Apache for static results. --- thumb/index.php | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.0