Re: [squid-users] no_cache & hierarchy_stoplist

From: Henrik Nordstrom <[email protected]>
Date: Tue, 12 Oct 2004 11:12:02 +0200 (CEST)

On Mon, 11 Oct 2004 admin@usachurch.com wrote:

> I'm trying to configure our http-accelerator squid not to cache certain URLs,
> and thought
> I'd ask you guys if I'm doing it right:
>
> acl QUERY urlpath_regex cgi-bin \? \.do \/admin\/ \/jive\/
> no_cache deny QUERY
>
> Will this block URLs that contain:
> ?
> cgi-bin
> .do
> /admin/
> /jive/

Yes, it will stop Squid from caching these URLs while proxying them.

You don't really need to escape the / in regex patterns.

> Also, should I also have a matching hierarchy_stoplist directive? such
> as:
>
> hierarchy_stoplist cgi-bin ? .do /admin/ /jive/

Well, this depends on what your hierarchy looks like. this is not related
to caching, only how Squid selects to forward the request within the
hierarchy of servers.

> I noticed in the default squid.conf file that the hierarchy_stoplist
> doesn't require the "\" escape characters. Anyone know why?

It is a plain string match, not a regex match.

hierarchy_stoplist is mostly the same as always_direct except that it is
slightly weaker (it won't override never_direct like always_direct does).

Regards
Henrik
Received on Tue Oct 12 2004 - 03:12:15 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Nov 01 2004 - 12:00:02 MST