Search squid archive

Refresh pattern issue in squid 3.1.20

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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_DROhttp://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


_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux