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

From: leongmzlist <leongmzlist@dont-contact.us>
Date: Mon, 03 Sep 2007 18:01:06 -0700

make sure you disable

# acl QUERY urlpath_regex cgi-bin \?
# cache deny QUERY
mike

At 05:08 PM 9/3/2007, Gert Verhoog 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:
>
>refresh_pattern \? 30 100% 30 override-expire
>refresh_pattern . 30240 100% 30240 override-expire
>
>
>Cheers,
>Gert
Received on Mon Sep 03 2007 - 19:01:18 MDT

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