From 4d3c97b3458b09fbc036adc9f3ec146e14b43366 Mon Sep 17 00:00:00 2001 From: orhtej2 <2871798+orhtej2@users.noreply.github.com> Date: Tue, 20 Feb 2024 23:11:45 +0100 Subject: [PATCH] Fixed nginx.conf --- conf/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 8facb26..2935687 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -97,11 +97,11 @@ location / { more_set_headers "X-Cache-Status: $upstream_cache_status"; } - location ~* \.(js|css).*$ { + location ~* ^/.*\.(js|css).*$ { more_set_headers "Cache-Control: 'max-age=86400'"; # 24 hours } - location ~* \.(html).*$ { + location ~* ^/.*\.(html).*$ { more_set_headers "Cache-Control: 'no-cache, max-age=0'"; }