[squid-users] Refresh pattern issue in squid 3.1.20
SaRaVanAn
saravanan.nagarajan87 at gmail.com
Wed Dec 30 22:48:38 UTC 2015
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 30 21:31:44 2015.976 1915 172.19.131.180 TCP_MISS/200 619 GET
http://s.wsj.net/javascript/pushdownAd.js - DIRECT/184.86.240.217
application/x-javascript
*Wed Dec 30 21:31:44 2015.976 1915 172.19.131.180 TCP_MISS/200 667 GET
http://s.wsj.net/static_html_files/pushdownAd.css
<http://s.wsj.net/static_html_files/pushdownAd.css> - DIRECT/184.86.240.217
<http://184.86.240.217> text/css*
*Wed Dec 30 21:52:38 2015.577 0 172.19.131.180 TCP_MEM_HIT/200 676 GET
http://s.wsj.net/static_html_files/pushdownAd.css
<http://s.wsj.net/static_html_files/pushdownAd.css> - NONE/- text/css*
Wed Dec 30 21:52:38 2015.577 0 172.19.131.180 TCP_MEM_HIT/200 628 GET
http://s.wsj.net/javascript/pushdownAd.js - NONE/- application/x-javascript
I have gone through the packet captures. It looks like expiry time is
greater than min time of refresh_pattern. But i have used override options.
Here I am confused whether precedence goes to expiry time or min time .I
am not clear on how it works.
Can you guide me on how it works and why it is not getting refreshed ? I
need experts guidance here
*pushdownAd.css repsonse header timings*
Last-Modified: Mon, 14 Dec 2015 04:37:00 GMT\r\n
Expires: Thu, 31 Dec 2015 01:10:17 GMT\r\n
Date: Wed, 30 Dec 2015 21:31:46 GMT\r\n
Regards,
Saravanan N
On Mon, Dec 28, 2015 at 6:13 AM, Matus UHLAR - fantomas <uhlar at fantomas.sk>
wrote:
> 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
> internet hostname
> - dash at the begin or end of [] will eliminate the need for an underscore
>
> [a-zA-Z0-9.-]+ should do it.
> --
> Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> "To Boot or not to Boot, that's the question." [WD1270 Caviar]
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20151230/54cc591a/attachment.html>
More information about the squid-users
mailing list