update nginx cache matching rules

This commit is contained in:
TNE 2022-07-30 20:03:47 +02:00
parent 8c436389d1
commit f6bee53b1a
2 changed files with 2 additions and 2 deletions

View File

@ -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 / {

View File

@ -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 / {