Re: [squid-users] not caching pages with http auth in squid 2.6

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 30 Sep 2006 15:12:31 +0200

fre 2006-09-29 klockan 22:48 -0700 skrev Edward Rosinzonsky:

> I have some pages that I don't want to cache because they have http
> authentication. In squid 2.5 I used to do that with the following
> line in squid.conf:
>
> refresh_pattern ^http:.+/page1/ 0 0% 0
>
> but in squid 2.6, this doesn't seem to work. The page doesn't authenticate.

The rules about refresh_pattern haven't changed.

But it's more effective to use the cache directive to block things from
caching. refresh_pattern only applies on pages where there is no
explicit expiry information set by the origin server.

acl page1 urlpath_regex /page1/
cache deny page1

Regards
Henrik

Received on Sat Sep 30 2006 - 16:06:26 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Oct 01 2006 - 12:00:04 MDT