From: Mischa POSLAWSKY Date: Fri, 12 Jul 2019 00:38:43 +0000 (+0200) Subject: thumb: omit immutable caching for derived results X-Git-Tag: v4.0~1 X-Git-Url: http://git.shiar.net/minimedit.git/commitdiff_plain/0ec5503f005aefca1c1d2380e70982918d5fc00c 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. --- 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;