Re: [squid-users] Re: Why TCP_MISS with simple request/response and aggressive refresh_pattern?

From: Yang Zhang <yanghatespam_at_gmail.com>
Date: Sun, 30 Jan 2011 10:09:31 -0800

On Fri, Jan 28, 2011 at 3:59 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 29/01/11 07:06, Yang Zhang wrote:
>>
>> I was confused by your reply until I realized that in my email I
>> managed to omit the one important change I made to my config:
>>
>> # refresh_pattern .>->-0>20%>4320 # commented this line out
>> refresh_pattern . 525600 100% 525600 ignore-private
>>
>> So it *should* be caching dynamic pages now, no?
>
> If you have the QEURY acl still in the config then no.
>
> That bing API result *is* a cacheable response and does not need any
> overrides. You need only to follow the wiki instructions about removing the
> storage block (QUERY acl) and adding the right cgi and ? refresh pattern to
> cope with any old or broken dynamic sites your clients visit.

Thanks, commenting out the line:

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

did the trick. (http://wiki.squid-cache.org/ConfigExamples/DynamicContent)

>
> If 3.0 is still not caching it after the wiki instructions have been
> followed then I would put it down to one of the date handling bugs we have
> fixed in the later Squid series.
>
>
>>
>> On Thu, Jan 27, 2011 at 9:55 PM, Amos Jeffries wrote:
>>>
>>> On 28/01/11 16:38, Yang Zhang wrote:
>>>>
>>>> I should also add that I'm using the Ubuntu 10.04 squid3 package
>>>> (3.0.STABLE19), and the refresh_pattern/debug_options edits I
>>>> mentioned are the only ones I made to the default squid.conf.
>>>>
>>>
>>> 3.0 requires configuration changes to store dynamic URLs.
>>>
>>> http://wiki.squid-cache.org/ConfigExamples/DynamicContent
>>>
>
>
> Amos
> --
> Please be using
>  Current Stable Squid 2.7.STABLE9 or 3.1.10
>  Beta testers wanted for 3.2.0.4
>

-- 
Yang Zhang
http://yz.mit.edu/
Received on Sun Jan 30 2011 - 18:09:59 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 31 2011 - 12:00:04 MST