add cache bypass option

This commit is contained in:
Karol Wypchlo 2020-07-29 12:05:26 +02:00
parent 4c7ad44f08
commit 7ff0c9d09a
1 changed files with 2 additions and 0 deletions

View File

@ -194,6 +194,7 @@ server {
proxy_cache_key $uri; proxy_cache_key $uri;
proxy_cache_min_uses 10; proxy_cache_min_uses 10;
proxy_cache_valid 200 1440m; proxy_cache_valid 200 1440m;
proxy_cache_bypass $cookie_nocache $arg_nocache; # add cache bypass option
} }
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" { location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
@ -220,5 +221,6 @@ server {
proxy_cache_key $uri; proxy_cache_key $uri;
proxy_cache_min_uses 10; proxy_cache_min_uses 10;
proxy_cache_valid 200 1440m; proxy_cache_valid 200 1440m;
proxy_cache_bypass $cookie_nocache $arg_nocache; # add cache bypass option
} }
} }