update nginx cache matching rules
This commit is contained in:
parent
8c436389d1
commit
f6bee53b1a
|
@ -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 / {
|
||||
|
|
|
@ -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 / {
|
||||
|
|
Loading…
Reference in New Issue