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?
Why is answering that objects are "MISS" when they are cached?

Here is my squid.conf file content:
acl SSL_ports port 443
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT

http_access allow manager localhost
http_access allow localhost
http_access allow all
http_port 3128
hierarchy_stoplist cgi-bin ?

cache_dir ufs /hd/SQUID 7000 16 256

coredump_dir /var/spool/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       0%      0

cache_mem 128 MB
maximum_object_size 4194304 KB
range_offset_limit -1
access_log none
acl Purge method PURGE
acl Get method GET
http_access allow all Purge
http_access allow all Get

Reply via email to