Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-31 Thread Amos Jeffries
On 2015-12-31 22:35, Eliezer Croitoru wrote: 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

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-31 Thread Eliezer Croitoru
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-in

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-30 Thread SaRaVanAn
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 *Logs* Wed Dec 3

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-28 Thread Matus UHLAR - fantomas
On 28.12.15 06:50, Eliezer Croitoru wrote: And you can tweak it a bit to something like: refresh_pattern -i ^http://[a-z\-\_\.A-Z0-9]+\.wsj\.(net|net|com|edu)/ 10 200% 10 \ override-expire reload-into-ims - I would avoid the underscore. underscore is not valid character for an interne

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-27 Thread Amos Jeffries
On 28/12/2015 5:30 p.m., SaRaVanAn wrote: > Thanks for prompt response. > > I want to match all the URL's which has a pattern of "wsj" (example: *. > wsj.com, *.wsj.net, *.wsj.edu ) . Does wildcard makes sense in squid > refresh pattern? Can we have something like this? > > refresh_pattern -i ^h

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-27 Thread Eliezer Croitoru
Hey, The pattern you wrote is wrong and also doesn't describe your need\desire. A domain name can contain only certain characters so using a "." is wrong. Also url and domain regular expressions should be as strict as possible so you would not have false positive matches. Amos suggested to use

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-27 Thread SaRaVanAn
Thanks for prompt response. I want to match all the URL's which has a pattern of "wsj" (example: *. wsj.com, *.wsj.net, *.wsj.edu ) . Does wildcard makes sense in squid refresh pattern? Can we have something like this? refresh_pattern -i ^http://*\.wsj\.*/ 10 200% 10 \ override-expire reload

Re: [squid-users] Refresh pattern issue in squid 3.1.20

2015-12-27 Thread Amos Jeffries
On 28/12/2015 1:30 p.m., SaRaVanAn wrote: > Hi, > We are using squid 3.1.20 in our box. We are facing issues on configuring > and validating the refresh patterns. It looks like squid is not honoring > the refresh patterns properly. > > > *configuration* > *refresh_pattern -i ^http://.wsj./.* 10 2