From d5f646c6c6b57f9a18b69890b8ff8c0be85057d7 Mon Sep 17 00:00:00 2001 From: Mulder Date: Tue, 19 Mar 2024 11:43:27 -0700 Subject: [PATCH] DBC22-1922: Add header so we can bypass cache --- compose/frontend/default.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose/frontend/default.conf b/compose/frontend/default.conf index 1f176252f..3049e07a9 100644 --- a/compose/frontend/default.conf +++ b/compose/frontend/default.conf @@ -62,6 +62,7 @@ server { proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; proxy_cache_valid 200 1m; add_header X-Proxy-Cache $upstream_cache_status; + proxy_cache_bypass $http_cachebypass; } location /django-media/ { @@ -76,6 +77,7 @@ server { proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504; proxy_cache_valid 200 1d; add_header X-Proxy-Cache $upstream_cache_status; + proxy_cache_bypass $http_cachebypass; } # redirect server error pages to the static page /50x.html