Open garraflavatra opened 1 week ago
Hello @garraflavatra thank you for posting this issue. I will try to fix that. My first idea would be about a broken pipe between caddy and your redis instance and can't reconnect. I will keep you informed about that.
Hi @darkweak, thanks for your reply! That might indeed be a problem, but I also tried using Badger and NutsDB, which both gave the same result, so I'm not sure if this is a Redis issue (unless the connection with Badger and Nuts was broken as well). Maybe it has something to do with the proxy and rewrite configuration?
I run Caddy with cache-handler, backed by Redis, in a Docker container. It successfully caches all cacheable responses, however it doesn't seem to be able to retrieve cached responses according to the
Cache-Status
header, which keeps reportingfwd=uri-miss
, although the keys stored in Redis do exist and contain the cached response body.The
header ?Cache-Control
rules I tried removing, with no effect, just as replacing Redis by NutsDB or Badger, or addingorder cache after header
. #64 and #48 seem related, but I haven't quite been able pinpoint the problem.What is the culprit here?
For completeness: access logs (with remote IP redacted): accesslogs.json