Search squid archive

Re: squid - loading, checking and purging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

  Powered by Linux