Hi, I am evaluating Caddy web server for caching, it is working fine if I don’t restart Caddy. Caddy is losing caching information after server restart, then it takes time for downloading files for the first time. Is this is the default behavior of Caddy web server or am I missing any parameter in Caddy file?
Below is Caddy file
http://abc.example.com {
browse
proxy / https://xyz.example.com/repos
cache {
status_header X-Cache-status
default_max_age 10m
path caddy-cache
}
log / stdout “{remote} {when} {method} {uri} {proto} {status} {size} {>User-Agent} {cache_status} {latency}”
}