Search squid archive

Re: Look into the cache.

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

 



El 28/08/13 11:32, Alex Rousskov escribió:
On 08/28/2013 08:00 AM, Alfredo Rezinovsky wrote:

I need to know if an URL is cached or not.

could I use squidclient for that?

If the object is cached I'll need to get it, if its a miss I just want
to know it without getting it.

Try sending an HTTP request with Request-URI you are interested in and
with a "Cache-Control: only-if-cached" header. You should get a 504
(Gateway Timeout) error if the object is missing.

If you prefer to use squidclient, its -H command line option can be used
to send the extra header (do not forget \n though).




I've found also I can use HEAD method and look for the X-Cache: header




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

  Powered by Linux