General
cancel
Showing results for 
Search instead for 
Did you mean: 

Squid 3 -> allow direct and exclude from caching

SOLVED
Go to solution
'chris'
Super Advisor

Squid 3 -> allow direct and exclude from caching

hi

I have Squid Version 3.0.PRE5 installed on debian etch.
Howto allow direct an URL and exclude it from caching at squid.conf ?
7 REPLIES
Ivan Krastev
Honored Contributor
Solution

Re: Squid 3 -> allow direct and exclude from caching

'chris'
Super Advisor

Re: Squid 3 -> allow direct and exclude from caching

thx, but if I allow direct do I need exclude from caching as well ?
Ivan Krastev
Honored Contributor

Re: Squid 3 -> allow direct and exclude from caching

Its cached anyway - http://www.squid-cache.org/Doc/config/always_direct/



NOTE: This directive is not related to caching. The replies is cached as usual even if you use always_direct. To not cache the replies see no_cache


In Squid 3 no_cache is changed to cache - http://www.squid-cache.org/Versions/v3/3.0/cfgman/cache.html

so use:
cache deny ACL


regards,
ivan



'chris'
Super Advisor

Re: Squid 3 -> allow direct and exclude from caching

thx, but is the following entry:

acl url dstdomain .domain.net
always_direct allow url
cache deny url

at squid.conf correct ?



Ivan Krastev
Honored Contributor

Re: Squid 3 -> allow direct and exclude from caching

This should be correct.
Just make some tests and see store.log file.

You should have an entry with SWAPOUT - http://wiki.squid-cache.org/SquidFaq/SquidLogs?highlight=(SWAPOUT)#head-513c454f63441d21b525e5888cb7ba917fdacbde


regards,
ivan
Ivan Krastev
Honored Contributor

Re: Squid 3 -> allow direct and exclude from caching

Ops, SWAPOUT is used only if the object is cached.

regards,
ivan
'chris'
Super Advisor

Re: Squid 3 -> allow direct and exclude from caching

thx a lot for all answers !