Re: [squid-users] Look into the cache.

From: Alfredo Rezinovsky <alfredo_at_fing.uncu.edu.ar>
Date: Wed, 28 Aug 2013 13:16:57 -0300

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
Received on Wed Aug 28 2013 - 16:17:34 MDT

This archive was generated by hypermail 2.2.0 : Thu Aug 29 2013 - 12:00:25 MDT