add cache-policy

This commit is contained in:
2024-12-19 00:03:22 +08:00
parent da78e79dcd
commit f49675a7b3
2 changed files with 35 additions and 3 deletions

View File

@ -40,6 +40,12 @@ misc:
first-chunk-bytes: 31457280 # 1024*1024*30, all upstreams with 200 response will wait for the first chunks to select a upstream by bandwidth, instead of by latency. defaults to 50M
# chunk-bytes: 1048576 # 1024*1024
cache:
timeout: 1h
policies:
- match: '.*\.(rpm|deb)$'
fresh-after: never
storage:
type: local # ignored
local: