add cache-policy
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user