Only cache successful responses

This commit is contained in:
PJ 2022-03-03 13:44:30 +01:00
parent 85e28dbc3f
commit f62e7334eb
No known key found for this signature in database
GPG Key ID: F345964979FA8971
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ location /skynet/portal/blocklist {
add_header X-Proxy-Cache $upstream_cache_status; add_header X-Proxy-Cache $upstream_cache_status;
proxy_cache skynet; proxy_cache skynet;
proxy_cache_valid any 15m; # cache portal blocklist for 15 minutes proxy_cache_valid 200 204 15m; # cache portal blocklist for 15 minutes
proxy_pass http://blocker:4000/blocklist; proxy_pass http://blocker:4000/blocklist;
} }