From e81c238f69b4a9f7f7b229eeb26130affa7abf52 Mon Sep 17 00:00:00 2001 From: ThePooN Date: Thu, 26 Dec 2024 23:05:42 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Preserve=20upstream=20Cache-Control?= =?UTF-8?q?=20headers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.js b/src/config.js index 997923c..d3bcf08 100644 --- a/src/config.js +++ b/src/config.js @@ -112,6 +112,7 @@ ${vhostCacheNginx} ${virtualHost.forceImageMimeType ? 'add_header Content-Type $image_type always;' : ''} + add_header Cache-Control $upstream_http_cache_control; add_header Cache-Control public; expires ${vhostCache["200"] ? vhostCache["200"] : vhostCache.any};