Better HN
topnewbestaskshowjobs
Log inSign up

aenum

2 karma · joined Apr 5, 2015 (11y ago) · 4 submissions

Submissions

comment 11y ago · link · parent

If the device is locked and does not allow ADB or MTP, 99% of perpetrators would not be able to access its data.

2.

The Singing Sailor Subsurface Defense System(svenskafreds.se ↗)

2 points · by aenum · 11y ago · discuss

comment 11y ago · link · parent

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;
    }
  }

comment 11y ago · link · parent

Any particular reason why you could not use `obj.hits`?

https://www.varnish-cache.org/trac/wiki/VCLExampleHitMissHea... (this would be resp.hits in 4.0)