Skip to content

Commit

Permalink
have nginx cache serve on 500 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
detjensrobert authored and aszs committed Feb 22, 2024
1 parent 4dcbdf2 commit 3dfa126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/aux/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ http {
proxy_cache_revalidate on; # use conditional GET with if-modified-since
#proxy_cache_min_uses 3; # min request count before cache starts

proxy_cache_use_stale error timeout updating;
proxy_cache_use_stale error timeout updating http_500;

add_header X-Cache-Status $upstream_cache_status;

Expand Down

0 comments on commit 3dfa126

Please sign in to comment.