Don’t 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
wordpress.com
blogger.com
dagdigdug.com
opensuse-id.org
technorati.com

Technorati Profile

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”

2 comments ↓

#1 Juan on 11.05.09 at 5:26 am

thanks a lot!!!

#2 Juan on 11.05.09 at 5:45 am

I’d like to enlarge squid cache size from 5 to 10 gigs, can you help?

#me : did you mean : squid cache_dir ?

Leave a Comment