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

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Tue, 22 Jul 2008 23:37:25 +1200

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
Received on Tue Jul 22 2008 - 11:37:27 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 23 2008 - 12:00:05 MDT