Search squid archive

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Tuesday, January 22, 2013 5:18 PM
To: He, Qingsheng 2
Cc: squid-users@xxxxxxxxxxxxxxx
Subject: Re:  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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
> Subject: RE:  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@xxxxxxxxxxxxx]
> Sent: Thursday, January 10, 2013 2:20 PM
> To: squid-users@xxxxxxxxxxxxxxx
> Subject: Re:  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



--
    /kinkie



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux