Only cache successful responses
This commit is contained in:
parent
85e28dbc3f
commit
f62e7334eb
|
@ -60,7 +60,7 @@ location /skynet/portal/blocklist {
|
|||
add_header X-Proxy-Cache $upstream_cache_status;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue