3 ms·
Indeed. You would have to poll the endpoints you want to monitor periodically and obviously the hit counter will reset when the object is expired/purged. Somet
by aenum 12y ago
Indeed. You would have to poll the endpoints you want to monitor periodically and obviously the hit counter will reset when the object is expired/purged.
Something like
sub vcl_deliver {
if (client.ip == "127.0.0.1") { # or header/method/whatever
set resp.http.X-Cache-Hits = resp.hits;
}
}
- _cyqui 12y agoWill quote this thread in the blog post so that it's more complete by also mentionning this solution (could fit some needs)