Re: [squid-users] Cache URL with "?"

From: Michael Alger <squid_at_mm.quex.org>
Date: Tue, 22 Jul 2008 12:36:02 +0800

On Tue, Jul 22, 2008 at 01:22:53PM +0900, KwangYul Seo wrote:
> It seems that squid never caches the URL with parameters. For
> example, every time a browser accesses
> http://www.naver.com/css/www.css?20080722, a cache miss occurs in
> squid.
>
> However, the server response header indicates that this CSS can be
> cached.

You're probably using the (old) default squid.conf which includes
something along the lines of:

acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY

This says that any URL that contains the string "cgi-bin" or "?"
cannot be cached. These are now deprecated, and you should remove
these and replace them with refresh_patterns instead (since they
only apply to content which doesn't have explicit expiry
information):

refresh_pattern (cgi-bin|\?) 0 0% 0
Received on Tue Jul 22 2008 - 04:36:05 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 22 2008 - 12:00:04 MDT