<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }body { font-size: 10.5pt; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>Hi, All</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">    I used httpclient to imitate a request to squid , but the response page had not stored by </span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">squid although </span>response header is<span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"> 200. I had tried many times with three different pages . only one can be stored by the squid cache. and the others must need to send requset by brower then they were cached.  I had checked the access.log , it show me like this.</span></div><div><span style="background-color: rgba(0, 0, 0, 0); font-size: 10.5pt; line-height: 1.5;">    </span>1513148548.653   9172 10.112.4.54 TCP_MISS_ABORTED/200 106197 GET http://youlun.lvmama.com/ship_front/youlun/1012487 - FIRSTUP_PARENT/10.112.4.54 text/html</div><div><br></div><div>do you know what's wrong of my squid.conf ? need your help !</div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">    below is my squid.conf</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">    </span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">acl gsrc src 10.112.4.54 10.113.10.191<br>acl gdst dst 10.112.4.54 10.113.10.191<br>http_access allow gsrc<br>http_access allow gdst</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br>acl localnet src 10.0.0.0/8     # RFC1918 possible internal network<br>acl localnet src 172.16.0.0/12  # RFC1918 possible internal network<br>acl localnet src 192.168.0.0/16 # RFC1918 possible internal network<br>acl localnet src fc00::/7       # RFC 4193 local private network range<br>acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines<br><br>acl purge method PURGE<br>acl clientServers src 10.112.4.54<br>http_access allow purge clientServers<br>http_access deny purge<br><br>acl gat method GET<br>acl clientS src 10.112.4.54 10.113.10.190<br>http_access allow gat clientS</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">#http_access deny gat<br><br>acl SSL_ports port 443<br>acl Safe_ports port 80          # http<br>acl Safe_ports port 21          # ftp<br>acl Safe_ports port 443         # https<br>acl Safe_ports port 70          # gopher<br>acl Safe_ports port 210         # wais<br>acl Safe_ports port 1025-65535  # unregistered ports<br>acl Safe_ports port 280         # http-mgmt<br>acl Safe_ports port 488         # gss-http<br>acl Safe_ports port 591         # filemaker<br>acl Safe_ports port 777         # multiling http<br>acl Safe_ports port 3130        # icp<br>acl Safe_ports port 3128<br>acl CONNECT method CONNECT<br><br>http_access deny !Safe_ports<br><br>http_access deny CONNECT !SSL_ports<br><br>http_access allow localhost manager<br>http_access deny manager<br><br>http_access allow localnet<br>http_access allow localhost</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">http_port 80 accel defaultsite=youlun.lvmama.com no-vhost<br><br>cache_dir aufs /var/spool/squid 8198 16 256<br>cache_mem 5120 MB<br>cache_swap_low 90<br>cache_swap_high 95<br>cache_mgr zhongzhe@lvmama.com<br><br>visible_hostname cache190<br><br>#cache_peer 10.113.10.191 sibling 80 3130 allow-miss proxy-only name=cache.neighbor<br>#cache_peer_access cache.neighbor allow all<br><br>#acl fromPeer src 10.113.10.191<br>#cache_peer_access cache.neighbor deny fromPeer<br><br>coredump_dir  /var/spool/squid<br><br>via off<br>maximum_object_size 500 KB<br><br>icp_port 3130<br>icp_access allow all<br>icp_query_timeout 2000<br><br>cache_peer 10.112.4.54 parent 8090 0 no-query originserver name=youlun<br>acl mysites dstdomain youlun.lvmama.com<br>http_access allow mysites<br>cache_peer_access youlun allow all<br>cache_peer_access youlun deny all<br><br>refresh_pattern -i .*/youlun/([0-9]+) 1440 100% 10080 ignore-no-store ignore-must-revalidate store-stale ignore-reload<br><br>refresh_pattern ^ftp:          1440    20%     10080<br>refresh_pattern ^gopher:        1440    0%      1440<br>refresh_pattern -i (/cgi-bin/|\?) 0     0%      0<br>refresh_pattern .               0       20%     4320<br><br>cache_log /var/log/squid/cache.log<br>cache_access_log /var/log/squid/access.log<br>cache_store_log /var/log/squid/store.log<br><br>log_icp_queries off</span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">http_access allow all<br>http_access deny all</span></div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div><a href="mailto:zhongzhe@lvmama.com" style="font-size: 10pt; line-height: 1.5; background-color: window;">zhongzhe@lvmama.com</a><span style="font-size: 10pt; color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span></div><div><span style="font-size: 10pt; color: rgb(0, 0, 0); line-height: 1.5; background-color: rgba(0, 0, 0, 0);"><br></span></div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"></span></div></span></div>
</body></html>