1) $ squidclient -m HEAD -H "Cache-Control: only-if-cached\n" URL the above works fine. what are the other "Cache-control: " headers ? 2) $ squidclient -m purge URL -> works fine 3) i used in a [ for loop ] and with export http_proxy=localhost:3128 $ wget -olog --proxy=on $i $ curl -v -o /dev/null $i $ squidclient URL | head -14 |grep -i cache >> log thanks for all your help. sirjune ----- Original Message ---- From: Chris Robertson <crobertson@xxxxxxx> To: squid-users@xxxxxxxxxxxxxxx Sent: Wednesday, April 15, 2009 1:50:37 PM Subject: Re: squid - loading, checking and purging 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