RE: [squid-users] Hello, can 'squidclient' check if a file is cached in the squid?

From: He, Qingsheng 2 <Qingsheng2.He_at_sonymobile.com>
Date: Thu, 10 Jan 2013 14:43:07 +0800

Hello Amos,

Sorry, I am a new subscriber for the mailing list.
I am not sure how to raise a question.

About use the squidclient to check if a file(url) has been cached by the squid, I just made a test, but it seem not work as my expectation.

#Squidclient -t 1 -h <SquidServerDNS> -p 80 $url

It return 'X-Cache: MISS from localhost'.

But actally the file has been cached since I use wget to download the file very fast.
If I use Icp to quiry it will return 'UDP_HIT'.

Do you know why?
Thanks.

He Qingsheng 

-----Original Message-----
From: Amos Jeffries [mailto:squid3_at_treenet.co.nz]
Sent: Thursday, January 10, 2013 2:20 PM
To: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Hello, can 'squidclient' check if a file is cached in the squid?

On 10/01/2013 7:06 p.m., He, Qingsheng 2 wrote:
> Hello all,
>
> Can 'squidclient' check if a file is cached in the squid?
> Thanks.
>
>
> He Qingsheng
>

Please do not hijack other peoples threads with unrelated topics.
Yes it can. squidclient $URL | more and look for X-Cache: header contents.

Amos
Received on Thu Jan 10 2013 - 06:43:20 MST

This archive was generated by hypermail 2.2.0 : Tue Jan 22 2013 - 12:00:04 MST