Re: [squid-users] Unable to have certain site to be non-cacheable and ignore already cached data

From: Anton <anton.vazir_at_gmail.com>
Date: Thu, 16 Oct 2008 18:09:53 +0500

Thanks so much Henrick and Leonardo!
Looks I should learn regexes, since taked "$" as
the "whatever after" meaning but not end of string :)
Now it logs as TCP_MISS.
Thanks so much again!

On Thursday 16 October 2008 15:45, Leonardo Rodrigues
Magalh„es wrote:
> Anton escreveu:
> > Hello!
> >
> > was trying for a few hours to have a certain site
> > (http://www.nix.ru) to be not cacheable - but squid
> > always gives me an object which is in cache!
> >
> > My steps:
> >
> > acl DIRECTNIX url_regex ^http://www.nix.ru/$
> > no_cache deny DIRECTNIX
> > always_direct allow DIRECTNIX
>
> your ACL is too complicated for a pretty simple thing
> ... it has the 'begin with' flag (^) and has the 'end
> with' ($) flag as well. And it has a final slash too. So,
> it seems that would match exclusively
>
> http://www.nix.ru/
>
> and nothing else ..... including NOT matching
> 'http://www.nix.ru/index.htm',
> 'http://www.nix.ru/logo.jpg' and so on.
>
> if you wanna hints on doing regexps, i would give you
> a precious hint: don't try to complicate things.
>
> acl DIRECTNIX url_regex -i www\.nix\.ru
>
> would do the job and would be much simplier to
> understand. And NEVER forget the case inconditional (-i)
> flag on regex ....
Received on Thu Oct 16 2008 - 13:10:27 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 17 2008 - 12:00:03 MDT