Hello,
But I have tried that with below command:
#Squidclient -t 1 -h <SquidServerDNS> -p 80 $url
It return 'X-Cache: MISS from localhost'.
But actually the url file has been cached in the squid server.
Is there something wrong with my usage?
Thanks.
BRs,
Qingsheng.
-----Original Message-----
From: Kinkie [mailto:gkinkie_at_gmail.com]
Sent: Tuesday, January 22, 2013 5:18 PM
To: He, Qingsheng 2
Cc: squid-users_at_squid-cache.org
Subject: Re: [squid-users] Hello, can 'squidclient' check if a file is cached in the squid?
Hi He,
Amos already replied you.
URL=http://what.you.want.to.test/
squidclient $URL | fgrep X-Cache:
will tell you.
On Tue, Jan 22, 2013 at 8:15 AM, He, Qingsheng 2 <Qingsheng2.He_at_sonymobile.com> wrote:
> Hello,
>
> Anyone could help me?
>
> Thanks.
>
> BRs,
> Qingsheng.
>
> -----Original Message-----
> From: He, Qingsheng 2
> Sent: Thursday, January 10, 2013 2:43 PM
> To: 'Amos Jeffries'; squid-users_at_squid-cache.org
> Subject: RE: [squid-users] Hello, can 'squidclient' check if a file is cached in the squid?
>
> 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
-- /kinkieReceived on Tue Jan 22 2013 - 09:30:58 MST
This archive was generated by hypermail 2.2.0 : Wed Jan 23 2013 - 12:00:05 MST