thumb: omit immutable caching for derived results
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 12 Jul 2019 00:38:43 +0000 (02:38 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 12 Jul 2019 02:18:16 +0000 (04:18 +0200)
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
thumb/index.php

index c63c79ed62515d84085383e5da28dbc8f4486310..d54d56a0bc19bd00044bb48ae19a17928d931f1d 100644 (file)
@@ -1,3 +1,3 @@
 <IfModule mod_headers.c>
-       Header set Cache-Control "max-age=2628000, immutable"
+       Header set Cache-Control "max-age=2628000"
 </IfModule>
index aadbf4f91eb664d1abc0109ca477d5e4aa71559c..b4f6091f5005ec405e433504ebb1f98d098cbb36 100644 (file)
@@ -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;