[squid-users] Refresh pattern issue in squid 3.1.20

SaRaVanAn saravanan.nagarajan87 at gmail.com
Mon Dec 28 00:30:57 UTC 2015


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 200% 10 override-expire
override-lastmod reload-into-ims ignore-reload*
refresh_pattern -i \.(gif|png|jpg|jpeg|ico)$ 480 100% 480 override-expire
override-lastmod reload-into-ims
refresh_pattern -i \.(htm|html|js|css)$ 480 100% 480 override-expire
override-lastmod reload-into-ims

refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320


As per above refresh pattern squid should refresh the cache every ten
minutes for "*^http://.wsj./.*" .  *But I am always getting either
TCP_HIT/TCP_MEM_HIT even after hours. Why is it so? . Please find the logs
below

*Log*

1261741.309      0 172.19.131.180 TCP_MEM_HIT/200 7635 GET
http://si.wsj.net/public/resources/images/BN-LW172_DRO
http://si.wsj.net/public/resources/images/BN-LV628_CITIOF_BR_20151223170624.jpg
- NONE/- image/jpeg
1451261741.336      0 172.19.131.180 TCP_HIT/200 10595 GET
http://si.wsj.net/public/resources/images/MI-CN459_ELNINO_BR_20151227175637.jpg
- NONE/- image/jpeg
1451261741.343      0 172.19.131.180 TCP_MEM_HIT/200 3986 GET
http://si.wsj.net/public/resources/images/BN-LV846_Tape_0_Z120_20151224145546.jpg
- NONE/- image/jpeg
1451261741.354      0 172.19.131.180 TCP_MEM_HIT/200 3432 GET
http://si.wsj.net/public/resources/images/BN-LV849_Oileco_Z120_20151224150223.jpg
- NONE/- image/jpeg
1451261741.361      0 172.19.131.180 TCP_MEM_HIT/200 2385 GET
http://video-api.wsj.com/api-video/player/v2/css/play_btn_80.png - NONE/-
image/png
1451261741.389      0 172.19.131.180 TCP_MEM_HIT/200 1675 GET
http://video-api.wsj.com/api-video/player/v2/css/play_btn_50.png - NONE/-
image/png
1451261741.407    756 172.19.131.180 TCP_HIT/200 534151 GET
http://vir.wsj.net/fp/assets/1e6e09e66457156e0903/SectionPage.js - NONE/-
application/javascript
1451261742.341     51 172.19.131.180 TCP_HIT/200 65486 GET
http://m.wsj.net/video/20151227/122715storms/122715storms_960x540.jpg -
NONE/- image/jpeg
1451261742.428    132 172.19.131.180 TCP_HIT/200 53668 GET
http://m.wsj.net/video/20151223/121415barpilots/121415barpilots_960x540.jpg
- NONE/
NE1_D_20151227175102.jpg - NONE/- image/jpeg
1451261741.310      0 172.19.131.180 TCP_MEM_HIT/200 8302 GET
http://si.wsj.net/public/resources/images/BN-LW104_itarge_D_20151227070713.jpg
- NONE/- image/jpeg
1451261741.318      0 172.19.131.180 TCP_HIT/200 12217 GET
http://si.wsj.net/public/resources/images/BN-LW010_OVERST_D_20151225160015.jpg
- NONE/- image/jpeg


Regards,
Saravanan N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20151227/2c43eb2c/attachment.html>


More information about the squid-users mailing list