Friday, September 18, 2009

Don’t cache this, squid !

http://ramadhan.opensuse-id.org/2009/03/09/dont-cache-this-squid/

I’m using squid. And for some specific reason, I don’t want squid to cache specific servers. So I put these on my squid.conf :

acl NOT-TO-CACHE dstdomain "/etc/squid/list/not-to-cache.conf"
no_cache deny NOT-TO-CACHE


and put this domains in /etc/squid/list/not-to-cache.conf

planet.terasi.net
blogsome.com
wordcodess.com
blogger.com
dagdigdug.com
opensuse-id.org
technorati.com


Using the same method, I don’t want my squid to cache *.css. So I put these on my squid.conf :

hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \? \.css
no_cache deny QUERY

Simply, then I executed “# squid -k reconfigure

No comments:

Post a Comment