[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-users
Subject:    Re: [squid-users] Look into the cache.
From:       Alfredo Rezinovsky <alfredo () fing ! uncu ! edu ! ar>
Date:       2013-08-28 16:16:57
Message-ID: 521E2279.4040402 () fing ! uncu ! edu ! ar
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic