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).
>
Perfect. That's what I looking for.
Received on Wed Aug 28 2013 - 16:00:18 MDT
This archive was generated by hypermail 2.2.0 : Wed Aug 28 2013 - 12:00:15 MDT