Search squid archive

RE: Re: Problems checking if an object is in cache or not

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You are right. 

The TRACE method was disabled in the Server (Tomcat). I enabled it in squid.conf and in server (tomcat).
Now TRACE method works, but X-Cache and X-Cache-Lookup options values are "MISS" in both cases.
In access.log file I can see that when the resource is asked a TCP_HIT trace appears, and not a TCP_MISS trace. I capture traffic with wireshark and client doesn't ask the file.

I saw in internet that I should use squidclient with -t option to check if an object is cached.
Why need I enable TRACE on server  to check if a object is cached in the client (Squid)? 
I need to ask to squid directly if an object is cached or not without server intervention. How can I do it?


 
-----Mensaje original-----
De: RW [mailto:rwmaillists@xxxxxxxxxxxxxx] 
Enviado el: miércoles, 04 de diciembre de 2013 13:57
Para: squid-users@xxxxxxxxxxxxxxx
Asunto:  Re: Problems checking if an object is in cache or not

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. 







[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux