[KLUG Members] Squid "no_cache"

Mike Morrett members@kalamazoolinux.org
Tue, 21 Jan 2003 09:11:37 -0500


I'm running Squid (in IPCop 1.2)...

How do I *not* cache certain sites, for example the whole family uses Web
based Email: http://www.fastmail.fm or http://www.mail.lycos.com

I'm not trying to stop any access to these sites, just don't bother
caching them.

Do I use the "no_cache" Tag Name?  How?  Where?

-----------------------------------------------------------------------------------------
http://squid.visolve.com/squid24s1/neighbour.htm#no_cache ...

Tag Name no_cache 
Usage no_cache deny|allow aclname 

Description
A list of ACL elements, which, if matched, cause the reply to be
immediately, removed from the cache. In other words, use this to force
certain objects to never be cached.

Default acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
The word 'DENY' is to indicate the ACL names, which should NOT be cached
 

Example
acl DENYPAGE urlpath_regex Servlet
no_cache deny DENYPAGE
The DENYPAGE acl assures that the url containing Servlet will NOT be
cached.

Caution
It is recommended to use this directive effectively.
-----------------------------------------------------------------------------------------

Mike
--
cat /dev/coffee | /dev/cup | /dev/mouth | /dev/nose > /dev/keyboard