Skip to content

Commit f6e5497

Browse files
authored
Modify proxy cache settings in nginx.conf.template
Updated proxy cache settings to include more error statuses and removed specific cache validity for 404, 500, 502, 503, and 504.
1 parent 006209f commit f6e5497

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

nginx.conf.template

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,8 @@ http {
2929
proxy_cache_methods GET HEAD;
3030

3131
proxy_cache_valid 200 5d;
32-
proxy_cache_valid 404 30s;
33-
proxy_cache_valid 500 30s;
34-
proxy_cache_valid 502 30s;
35-
proxy_cache_valid 503 30s;
36-
proxy_cache_valid 504 30s;
3732

38-
proxy_cache_use_stale updating;
33+
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504 http_404;
3934
proxy_cache_background_update on;
4035
proxy_cache_lock on;
4136

0 commit comments

Comments
 (0)