This is an old revision of the document!


How can I configure squid so that it never caches some web sites?

Add the following line in /etc/squid/squid.conf:

 acl NOCACHEDOMAIN dstdomain www.redhat.com
 no_cache deny NOCACHEDOMAIN

It will not cache any content come from the domain www.redhat.com. In /var/log/squid/access.log, it will show the page from that domain will always get “TCP_MISS” on consecutive visits.

 1197363963.721    892 127.0.0.1 TCP_MISS/200 11813 GET http://www.redhat.com/ - DIRECT/209.132.177.50 text/html
 1197364100.832    906 127.0.0.1 TCP_MISS/200 11813 GET http://www.redhat.com/ - DIRECT/209.132.177.50 text/html
linux/squid.1204676549.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready