PDA

View Full Version : exclude an URL from caching in squid


ccc
January 31st, 2009, 19:45
hi

I have Squid Version 3.0 PRE5 installed on freebsd.
Howto exclude an URL from caching at squid.conf ?

geeknik
February 1st, 2009, 05:18
You might want to update your installation of squid. 3.0STABLE12 was just released.

But in answer to your question, here is what you want in your squid.conf:


acl no_cache_server1 dstdomain .domain.com
no_cache deny no_cache_server1

acl no_cache_server2 dstdomain .domain2.com
no_cache deny no_cache_server2

acl no_cache_server3 dstdomain .domain3.com
no_cache deny no_cache_server3


Hope this helps you out.

ccc
February 1st, 2009, 05:35
You might want to update your installation of squid. 3.0STABLE12 was just released.

But in answer to your question, here is what you want in your squid.conf:



Hope this helps you out.

thx, but I've read squid3 uses cache deny ... instead of no_cache deny.

geeknik
February 1st, 2009, 08:06
I'm using Squid 3.0 Stable12 on FreeBSD 7.1 and my no_cache deny rules work just fine.

ccc
February 9th, 2009, 13:45
Squid 3.0 uses:

cache deny

and not

no_cache deny

greetings
ccc