<div dir="ltr">Hey Ahmed,<div><br></div><div>You can use reload-into-ms, most other squid refresh patterns you have used do more harm than benefits,</div><div>something like,</div><div><br></div><div><div style="font-family:menlo;font-size:12.8px;margin:0px">refresh_pattern -i appldnld\.apple\.com 43200 100% 43200  <span style="color:rgb(30,30,30);font-family:courier;font-size:12px">reload-into-ims</span></div></div><div><br></div><div>would work. I am not sure about the regex you have used, i thought i had different.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 23, 2016 at 7:02 PM, --Ahmad-- <span dir="ltr"><<a href="mailto:ahmed.zaeem@netstream.ps" target="_blank">ahmed.zaeem@netstream.ps</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">hi foks .<div><br><div>i need to know what wrong i have in apple caching updates .</div><div><br></div><div>1st of all the access.log files as below :</div><div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><font color="#0433ff">1474636714.291     89 192.168.0.11 TCP_MISS/206 9501 GET <a href="http://swcdn.apple.com/content/downloads/49/62/031-1878/hfuvnhh956akbythuxg2im9pdnm3c263sf/BookKitDelta.pkg" target="_blank">http://swcdn.apple.com/<wbr>content/downloads/49/62/031-<wbr>1878/<wbr>hfuvnhh956akbythuxg2im9pdnm3c2<wbr>63sf/BookKitDelta.pkg</a> - ORIGINAL_DST/<a href="http://17.253.37.202" target="_blank">17.253.37.202</a> application/octet-stream</font></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><font color="#0433ff">1474636777.755     95 192.168.0.11 TCP_MISS/206 9501 GET <a href="http://swcdn.apple.com/content/downloads/49/62/031-1878/hfuvnhh956akbythuxg2im9pdnm3c263sf/BookKitDelta.pkg" target="_blank">http://swcdn.apple.com/<wbr>content/downloads/49/62/031-<wbr>1878/<wbr>hfuvnhh956akbythuxg2im9pdnm3c2<wbr>63sf/BookKitDelta.pkg</a> - ORIGINAL_DST/<a href="http://17.253.37.202" target="_blank">17.253.37.202</a> application/octet-stream</font></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><font color="#0433ff">1474636841.194     99 192.168.0.11 TCP_MISS/206 9501 GET <a href="http://swcdn.apple.com/content/downloads/49/62/031-1878/hfuvnhh956akbythuxg2im9pdnm3c263sf/BookKitDelta.pkg" target="_blank">http://swcdn.apple.com/<wbr>content/downloads/49/62/031-<wbr>1878/<wbr>hfuvnhh956akbythuxg2im9pdnm3c2<wbr>63sf/BookKitDelta.pkg</a> - ORIGINAL_DST/<a href="http://17.253.37.202" target="_blank">17.253.37.202</a> application/octet-stream</font></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><font color="#0433ff">1474636934.576     81 192.168.0.11 TCP_MISS/200 2062 GET <a href="http://sr.symcd.com/MFYwVKADAgEAME0wSzBJMAkGBSsOAwIaBQAEFHQkFGcGn/XgmD9ePhproGUqVBV1BBQBWavn3ToLWaZkY9bPIAdX1ZHnagIQEyA4ubHXyrHK2FbDJD3q1A==" target="_blank">http://sr.symcd.com/<wbr>MFYwVKADAgEAME0wSzBJMAkGBSsOAw<wbr>IaBQAEFHQkFGcGn/<wbr>XgmD9ePhproGUqVBV1BBQBWavn3ToL<wbr>WaZkY9bPIAdX1ZHnagIQEyA4ubHXyr<wbr>HK2FbDJD3q1A==</a> - ORIGINAL_DST/<a href="http://2.22.139.27" target="_blank">2.22.139.27</a> application/ocsp-response</font></span></div></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span>==========</span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span>not sure exactly what i need to modify in the ACLS .</span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span>===========</span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span>squid.conf :</span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><br></span></div><div style="margin:0px;line-height:normal;font-family:Menlo"><span><div style="margin:0px;line-height:normal"><span>acl localnet src <a href="http://10.0.0.0/8" target="_blank">10.0.0.0/8</a>     # RFC1918 possible internal network</span></div><div style="margin:0px;line-height:normal"><span>acl localnet src <a href="http://172.16.0.0/12" target="_blank">172.16.0.0/12</a>  # RFC1918 possible internal network</span></div><div style="margin:0px;line-height:normal"><span>acl localnet src <a href="http://192.168.0.0/16" target="_blank">192.168.0.0/16</a> # RFC1918 possible internal network</span></div><div style="margin:0px;line-height:normal"><span>acl localnet src fc00::/7       # RFC 4193 local private network range</span></div><div style="margin:0px;line-height:normal"><span>acl localnet src fe80::/10      # RFC 4291 link-local (directly plugged) machines</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>acl SSL_ports port 443</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 80          # http</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 21          # ftp</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 443         # https</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 70          # gopher</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 210         # wais</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 1025-65535  # unregistered ports</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 280         # http-mgmt</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 488         # gss-http</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 591         # filemaker</span></div><div style="margin:0px;line-height:normal"><span>acl Safe_ports port 777         # multiling http</span></div><div style="margin:0px;line-height:normal"><span>acl CONNECT method CONNECT</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>http_access allow localnet</span></div><div style="margin:0px;line-height:normal"><span>http_access allow localhost</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span># And finally deny all other access to this proxy</span></div><div style="margin:0px;line-height:normal"><span>http_access  deny all</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>http_port 3128</span></div><div style="margin:0px;line-height:normal"><span>http_port 3129 intercept</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>cache_dir ufs /var/cache/squid1 10000 16 256</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>maximum_object_size 6000 MB</span></div><div style="margin:0px;line-height:normal"><span>range_offset_limit -1</span></div><div style="margin:0px;line-height:normal"><span>quick_abort_min -1 KB</span></div><div style="margin:0px;line-height:normal"><span>##################</span></div><div style="margin:0px;line-height:normal"><span>acl updatesites dstdom_regex "/etc/squid/updatesites.txt"</span></div><div style="margin:0px;line-height:normal"><span>cache allow updatesites</span></div><div style="margin:0px;line-height:normal"><span>cache deny all </span></div><div style="margin:0px;line-height:normal"><span>############################</span></div><div style="margin:0px;line-height:normal"><span>cache_store_log /var/log/squid/store.log</span></div><div style="margin:0px;line-height:normal"><span>access_log daemon:/var/log/squid/access.<wbr>log squid</span></div><div style="margin:0px;line-height:normal"><span>cache_log /var/log/squid/cache.log</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>coredump_dir /var/cache/squid</span></div><p style="margin:0px;line-height:normal;min-height:16px"><span> </span><br></p><div style="margin:0px;line-height:normal"><span>store_id_program /lib/squid/storeid_file_<wbr>rewrite /etc/squid/storeid_rewrite.<wbr>conf</span></div><div style="margin:0px;line-height:normal"><span>store_id_children 10 startup=3 idle=1 concurrency=0</span></div><div style="margin:0px;line-height:normal"><span>##############################<wbr>##############</span></div><div style="margin:0px;line-height:normal"><span>refresh_pattern -i appldnld\.apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmod</span></div><div style="margin:0px;line-height:normal"><span>refresh_pattern -i \.apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmod</span></div><div style="margin:0px;line-height:normal"><span>refresh_pattern -i .apple\.com 43200 100% 43200 ignore-reload ignore-no-store override-expire override-lastmod</span></div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span>##############################<wbr>#####################</span></div><div style="margin:0px;line-height:normal">cat /etc/squid/updatesites.txt</div><div style="margin:0px;line-height:normal"><span><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span>([^.]+.|)<a href="http://apple.com" target="_blank">apple.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?(download|(windows)?<wbr>update)\.(microsoft\.)?com</span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://adobe.com" target="_blank">adobe.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://java.com" target="_blank">java.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://sun.com" target="_blank">sun.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://oracle.com" target="_blank">oracle.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://apple.com" target="_blank">apple.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://apple.com" target="_blank">apple.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://ubuntu.com" target="_blank">ubuntu.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://steampowered.com" target="_blank">steampowered.com</a></span></div><div style="margin:0px;line-height:normal"><span>([^.]+\.)?<a href="http://google.com" target="_blank">google.com</a></span></div><div style="margin:0px;line-height:normal">##############################<wbr>###########</div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span><div style="margin:0px;line-height:normal"><span> cat /etc/squid/storeid_rewrite.<wbr>conf</span></div><div style="margin:0px;line-height:normal"><span>^http:\/\/[^\.]+\.phobos\.<wbr>apple\.com\/(.*)<span style="white-space:pre-wrap">                </span><a href="http://appupdates.apple.squid.internal/$1" target="_blank">http://appupdates.apple.squid.<wbr>internal/$1</a></span></div><div style="margin:0px;line-height:normal"><span>^http:\/\/[^\.]+\.cs\.<wbr>steampowered\.com\/(.*)<span style="white-space:pre-wrap">            </span> http: //steamupdates.squid.internal/<wbr>$1</span></div></span></div></span></div><div style="margin:0px;line-height:normal"><span><br></span></div><div style="margin:0px;line-height:normal"><span><br></span></div></span></div></div></div><br>______________________________<wbr>_________________<br>
squid-users mailing list<br>
<a href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.<wbr>org</a><br>
<a href="http://lists.squid-cache.org/listinfo/squid-users" rel="noreferrer" target="_blank">http://lists.squid-cache.org/<wbr>listinfo/squid-users</a><br>
<br></blockquote></div><br></div>