[squid-users] Refresh pattern issue in squid 3.1.20

Eliezer Croitoru eliezer at ngtech.co.il
Thu Dec 31 09:35:18 UTC 2015


On 31/12/2015 00:48, SaRaVanAn wrote:
> Hi, All,
> I tired suggested refresh pattern, still i was getting TCP_HIT/MEM_HIT.
> It's not getting refreshed after 10 minutes.
>
>
> *Conf*
> refresh_pattern -i ^http://[a-z\-\_\.A-Z0-9]+\.wsj\.(net|net|com|edu)/ 10
> 200% 10 override-expire override-lastmod reload-into-ims ignore-reload

I am not sure but you are maybe hitting bug 4389 which I have just 
recently filed:
http://bugs.squid-cache.org/show_bug.cgi?id=4389

The basic rule is that you also need to have a Cache-Control header in 
order to enforce somethings.
If you have a "must-revalidate" rule it would be reloaded.
Also from your logs it seems that you or the client have not tried to 
"refresh" the request using some Cache-Control headers or using the F5 
button(when in some cases it won't work).

Try to remove the override instructions and use 0 value for the min and 
see what happens.

Eliezer


More information about the squid-users mailing list