diff --git a/preset/conf.d-tunnels/chaotic.conf b/preset/conf.d-tunnels/chaotic.conf index 4324f9c..a2416f3 100644 --- a/preset/conf.d-tunnels/chaotic.conf +++ b/preset/conf.d-tunnels/chaotic.conf @@ -5,7 +5,7 @@ server { autoindex_format xml; root /var/lib/nginx/html/http-root; - location ~* /chaotic-aur/x86_64/(?!.*chaotic-aur\.(db|files)).+\.tar.* { + location ~* ^/chaotic-aur/([^/]+)/x86_64/(?!\1\.(db|files))[^/]+$ { add_header Cache-Control "max-age=150, stale-while-revalidate=150, stale-if-error=86400"; } location / { diff --git a/preset/conf.d/chaotic.conf b/preset/conf.d/chaotic.conf index 201c239..0fcaa96 100644 --- a/preset/conf.d/chaotic.conf +++ b/preset/conf.d/chaotic.conf @@ -8,7 +8,7 @@ server { autoindex_format xml; root /var/lib/nginx/html/http-root; - location ~* /chaotic-aur/x86_64/(?!.*chaotic-aur\.(db|files)).+\.tar.* { + location ~* ^/chaotic-aur/([^/]+)/x86_64/(?!\1\.(db|files))[^/]+$ { add_header Cache-Control "max-age=150, stale-while-revalidate=150, stale-if-error=86400"; } location / {