On Wed, 4 Dec 2013 11:02:40 +0000 Donoso Gabilondo, Daniel wrote: > I need check if an object is in squid cache or not. I use squid > 3.2.0.12 on Fedora 16. > > I saw that squidclient should do this but it said that objects are > "MISS" and I don't know why because they are cached. (I checked it > with Wireshark) > > I tried executing this command: > > squidclient -h localhost -p 3128 -t 1 > "http://192.168.230.10/myvideos/VEA_ESP.mov" > > and this is the result: > > HTTP/1.1 405 Method Not Allowed > Server: Apache-Coyote/1.1 > Allow: POST, GET, DELETE, OPTIONS, PUT, HEAD > Content-Length: 0 > Date: Wed, 04 Dec 2013 10:40:25 GMT > X-Cache: MISS from pc02 > X-Cache-Lookup: MISS from pc02:3128 > Via: 1.1 pc02 (squid/3.2.0.12) > Connection: close > > Why is giving the Method not allowed error? Presumably you aren't allowed to use the TRACE method, try it without the -t option. > Why is answering that objects are "MISS" when they are cached? It's the error message that's a MISS not the object.