Skip to content

Commit

Permalink
DBC22-1922: Add header so we can bypass cache
Browse files Browse the repository at this point in the history
  • Loading branch information
wmuldergov authored and fatbird committed Mar 20, 2024
1 parent dd3b0b4 commit d5f646c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compose/frontend/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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/ {
Expand All @@ -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
Expand Down

0 comments on commit d5f646c

Please sign in to comment.