Fix location match patterns for badge cache-control rules

See #2231
This commit is contained in:
Steve Purcell 2014-12-12 16:11:35 +00:00
parent fe5b05152c
commit 1834069f66
2 changed files with 3 additions and 2 deletions

View file

@ -69,7 +69,7 @@ server {
proxy_temp_file_write_size 64k;
}
location /packages/*.svg {
location ~ ^/packages/.*\.svg {
add_header Cache-Control no-cache;
}
}

View file

@ -67,7 +67,8 @@ server {
proxy_temp_file_write_size 64k;
}
location /packages/*.svg {
location ~ ^/packages/.*\.svg {
add_header Cache-Control no-cache;
}
}