Amos Jeffries wrote:
> Sir June wrote:
>> i'm looking for command-line options..
>
> squidclient is your friend for atomic type object operations. Just be
> careful when pulling binary objects since it will dump the resulting
> page to stdout/screen.
Performing a "HEAD" method request would alleviate pulling the whole object.
>
> 1) squidclient -H "Cache-Control: only-if-cached\n"
> http://example.com/mypage.html
squidclient -m HEAD -H "Cache-Control: only-if-cached\n"
http://example.com/mypage.html
>
> 2) squidclient -m PURGE http://example.com/mypage.html
>
>
> 3) fast way: wget -i list.txt -O /dev/null
> alternative:
> for f in `cat list.txt`; do squidclient $f >/dev/null; done
>
> Amos
Chris
Received on Wed Apr 15 2009 - 17:50:57 MDT
This archive was generated by hypermail 2.2.0 : Thu Apr 16 2009 - 12:00:01 MDT