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