Search squid archive

Re: Cache URL with "?"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frog wrote:
Michael Alger wrote:
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

Does this apply to Squid3 only or is it supported in any recent version?

Any supported squid version. It's a caching policy-level change. Not a code one.

Only one issue has come up: under sibling relationships, squids method of relaying requests to sibling is slightly bad and may break the proper expected behavior. All other setups should be fine.

Amos
--
Please use Squid 2.7.STABLE3 or 3.0.STABLE8

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux