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

Reply via email to