Skip to content

Commit

Permalink
Set cache valid any 1m
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulPickhardt committed Sep 12, 2024
1 parent cd386f3 commit e763ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server {
# Define proxy settings for this location
proxy_cache_valid 200 302 ${SUCCESS_STORE_TIME}; # Cache successful responses and found content for X minutes
proxy_cache_valid 404 ${NOT_FOUND_STORE_TIME}; # Cache 404 errors for X minutes
proxy_cache_valid any 0; # To not cache 50X for example
proxy_cache_valid any 1m; # To cache everything else for 1 minute
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;


Expand Down

0 comments on commit e763ae6

Please sign in to comment.