add cache bypass option
This commit is contained in:
parent
4c7ad44f08
commit
7ff0c9d09a
|
@ -194,6 +194,7 @@ server {
|
|||
proxy_cache_key $uri;
|
||||
proxy_cache_min_uses 10;
|
||||
proxy_cache_valid 200 1440m;
|
||||
proxy_cache_bypass $cookie_nocache $arg_nocache; # add cache bypass option
|
||||
}
|
||||
|
||||
location ~ "^/file/([a-zA-Z0-9-_]{46}(/.*)?)$" {
|
||||
|
@ -220,5 +221,6 @@ server {
|
|||
proxy_cache_key $uri;
|
||||
proxy_cache_min_uses 10;
|
||||
proxy_cache_valid 200 1440m;
|
||||
proxy_cache_bypass $cookie_nocache $arg_nocache; # add cache bypass option
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue