From 7ff0c9d09aac6aa3696e510d7258e36e8956910e Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Wed, 29 Jul 2020 12:05:26 +0200 Subject: [PATCH] add cache bypass option --- docker/nginx/conf.d/client.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/nginx/conf.d/client.conf b/docker/nginx/conf.d/client.conf index cc21b52b..6dca374b 100644 --- a/docker/nginx/conf.d/client.conf +++ b/docker/nginx/conf.d/client.conf @@ -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 } }