Re: [squid-users] how can I query squid cache?

From: ying lcs <yinglcs@dont-contact.us>
Date: Wed, 11 Jul 2007 16:29:42 -0500

On 7/11/07, Andreas Pettersson <andpet@telia.com> wrote:
> ying lcs wrote:
> > On 7/11/07, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> >> tis 2007-07-10 klockan 21:27 -0500 skrev ying lcs:
> >> > Hi,
> >> >
> >> > Is there a way to query if squid cache has entries (not expired) for a
> >> > specified url?
> >>
> >> Cache-Control: only-if-cached
> >
> > Thanks. But I am looking for some command line interface which check
> > if squid cache has an entires in its squid cache for a particular url.
> squidclient can be used for this.
>
> # squidclient -H "Cache-Control: only-if-cached\n"
> 'http://www.freebsd.org/' | head -1 | awk '{ if ($2=="200") print
> "cached!"; else print "not cached"; }'
>

Thanks. Can i use squidclient to query a remotely located squid server
(i.e. squidclient and squid) are on different machine?

> --
> Andreas
>
>
>
Received on Wed Jul 11 2007 - 15:29:45 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:03 MDT