Configure squid so that it never caches some web sites
Jump to navigation
Jump to search
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