Re: Again no_cache does not work

From: Kendall Lister <kendall@dont-contact.us>
Date: Sun, 19 Dec 1999 19:37:36 +1100 (EST)

On Sun, 19 Dec 1999, Henrik Nordstrom wrote:

> I think you may want
> no_cache deny local
>
> The directive is a bit counter-intuitive in that it requires double
> negations (no_ and deny) to stop things from being cached. Suggestions
> for a better name of the directive are welcome.

How about allowing an alias for deny - something like "for". This would
not affect any existing squid.conf, but if a user chose to do so they
could use lines like "no_cache for local_sites". The following addition to
acl.c _might_ enable this:

865: if (!strcmp(t, "allow"))
866: A->allow = 1;
867: else if (!strcmp(t, "deny"))
868: A->allow = 0;
++++ else if (!strcmp(t, "for"))
++++ A->allow = 0;
869: else {

This is not tested, so don't use it if you don't understand it... :)

--
 Kendall Lister, Systems Operator for Charon I.S. - kendall@charon.net.au
  Charon Information Services - Friendly, Cheap Melbourne ISP: 9589 7781
Received on Sun Dec 19 1999 - 01:45:21 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:49:56 MST