[squid-users] Re: refresh_pattern that matches query parameters?

From: RW <fbsd06@dont-contact.us>
Date: Wed, 5 Sep 2007 00:29:29 +0100

On Tue, 04 Sep 2007 12:08:44 +1200
Gert Verhoog <gert@catalyst.net.nz> wrote:

> Adrian Chadd wrote:
> > On Tue, Sep 04, 2007, Gert Verhoog wrote:
> >
> >> I'm beginning to suspect that refresh_pattern ignores query
> >> strings, but hopefully I'm wrong. Currently I'm not caching urls
> >> with parameters at all (using an urlpath_regex acl), but this is
> >> not desirable.
> >
> > Check the cache (or no_cache directive in the past) to see how Squid
> > defaults to not caching URLs with a ? in the path.
>
> Yes, as I said, I was not caching these pages, on purpose. Otherwise,
> pages with query params would be cached too long in my setup.
>
> Fortunately, my refresh patterns do seem to work after tweaking the
> max-age and expires header in the webapplication. Max-age was set to a
> long time in the webapp, but I was under the impression that the
> "override-expire" option in refresh_pattern would cause Squid to
> ignore this altogether. Apparently not.
>
> So this does work after all, I just don't understand the effect of
> override-expire:

From the default squid.conf

override-expire enforces min age even if the server
                sent a Expires: header.

i.e. it only enforces "min age" - it's not "ignore-expire". Can you not
fix this in the server? Query URL are supposed to be governed by the
expiry time or not cached at all.
Received on Tue Sep 04 2007 - 17:29:52 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Oct 01 2007 - 12:00:02 MDT