[squid-users] don't want Squid to cache one server

From: Alvaro Gordon-Escobar <alvaroge@dont-contact.us>
Date: Tue, 12 Aug 2003 16:30:59 -0400

I Tried these steps on the squid-cache.org FAQs

I don't want to cache a specific my Out Web Access server.
but when I enter the no_cache deny local
I get an error

 acl OWA dst 10.9.1.33/255.255.255.255

squid.conf line 364 :no_cache deny OWA
ACLParseAccessLine: ACL name "OWA" not found

any ideas wha I did wrong?

7.8 How can I make Squid NOT cache some servers or URLs?
In Squid-2, you use the no_cache option to specify uncachable requests. For example, this makes all responses from origin servers in the 10.0.1.0/24 network uncachable:

        acl Local dst 10.0.1.0/24
        no_cache deny Local

This example makes all URL's with '.html' uncachable:

        acl HTML url_regex .html$
        no_cache deny HTML

This example makes a specific URL uncachable:

        acl XYZZY url_regex ^http://www.i.suck.com/foo.html$
        no_cache deny XYZZY

This example caches nothing between the hours of 8AM to 11AM:

        acl Morning time 08:00-11:00
        no_cache deny Morning

In Squid-1.1, whether or not an object gets cached is controlled by the cache_stoplist, and cache_stoplist_pattern options. So, you may add:

        cache_stoplist my.domain.com

Specifying uncachable objects by IP address is harder. The 1.1 patch page includes a patch called no-cache-local.patch which changes the behaviour of the local_ip and local_domain so that matching requests are NOT CACHED, in addition to being fetched directly.
Received on Tue Aug 12 2003 - 14:30:35 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:18:50 MST