From 0ec5503f005aefca1c1d2380e70982918d5fc00c Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 02:38:43 +0200 Subject: [PATCH] thumb: omit immutable caching for derived results Even if the originals are treated as immutable, prefer an option to update conversions since options may be changed later to improve quality. --- thumb/.htaccess | 2 +- thumb/index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/thumb/.htaccess b/thumb/.htaccess index c63c79e..d54d56a 100644 --- a/thumb/.htaccess +++ b/thumb/.htaccess @@ -1,3 +1,3 @@ - Header set Cache-Control "max-age=2628000, immutable" + Header set Cache-Control "max-age=2628000" diff --git a/thumb/index.php b/thumb/index.php index aadbf4f..b4f6091 100644 --- a/thumb/index.php +++ b/thumb/index.php @@ -28,7 +28,7 @@ catch (Throwable $e) { exit; } -header('Cache-Control: max-age=2628000, immutable'); +header('Cache-Control: max-age=2628000'); header('Content-type: '.mime_content_type($target)); readfile($target); exit; -- 2.30.0