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 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



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

  Powered by Linux