<div dir="ltr">Hello,<div><br></div><div>I am trying to cache following deb files as its most requested file in network. ( google chrome almost every few days many clients update it ).</div><div><br></div><div><div><a href="http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb">http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb</a></div><div><a href="http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb">http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb</a></div></div><div><br></div><div>Response headers for both contains Last modified date which is 10 to 15 days old but squid does not seem to cache it somehow. here is sample response header for one of the file,</div><div><br></div><div><div>HTTP Response Header</div><div><br></div><div>Status: HTTP/1.1 200 OK</div><div>Accept-Ranges:<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>bytes<span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div><div>Content-Length:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>6662208<span class="gmail-Apple-tab-span" style="white-space:pre">       </span></div><div>Content-Type:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>application/x-debian-package<span class="gmail-Apple-tab-span" style="white-space:pre">  </span></div><div>Etag:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>"fa383"<span class="gmail-Apple-tab-span" style="white-space:pre">     </span></div><div>Last-Modified:<span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Thu, 15 Sep 2016 19:24:00 GMT<span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div><div>Server:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>downloads<span class="gmail-Apple-tab-span" style="white-space:pre">     </span></div><div>Vary:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>*<span class="gmail-Apple-tab-span" style="white-space:pre">     </span></div><div>X-Content-Type-Options:<span class="gmail-Apple-tab-span" style="white-space:pre">        </span>nosniff<span class="gmail-Apple-tab-span" style="white-space:pre">       </span></div><div>X-Frame-Options:<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>SAMEORIGIN<span class="gmail-Apple-tab-span" style="white-space:pre">    </span></div><div>X-Xss-Protection:<span class="gmail-Apple-tab-span" style="white-space:pre">      </span>1; mode=block<span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div><div>Date:<span class="gmail-Apple-tab-span" style="white-space:pre">  </span>Tue, 04 Oct 2016 12:51:57 GMT<span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div><div>Alt-Svc:<span class="gmail-Apple-tab-span" style="white-space:pre">       </span>quic=":443"; ma=2592000; v="36,35,34,33,32"<span class="gmail-Apple-tab-span" style="white-space:pre">       </span></div><div>Connection:<span class="gmail-Apple-tab-span" style="white-space:pre">    </span>close<span class="gmail-Apple-tab-span" style="white-space:pre"> </span></div></div><div><br></div><div><br></div><div>I have tried various refresh patterns to cache it but it seems somehow it's not cached no matter what i try, below are 6 different methods i have already tried one by one</div><div><br></div><div><div>1) refresh_pattern <a href="http://dl-ssl.google.com">dl-ssl.google.com</a>  2160 100% 10080 ignore-no-cache reload-into-ims</div><div><br></div><div>2) refresh_pattern <a href="http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb">http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb</a> 129600 100% 129600 reload-into-ims</div><div><br></div><div>3) refresh_pattern <a href="http://dl-ssl.google.com">dl-ssl.google.com</a>\/dl\/linux\/direct/.*\(.deb|.zip) 43200 80% 129600 reload-into-ims override-lastmod ignore-no-store refresh-ims store-stale </div><div><br></div><div>4) refresh_pattern ^http:\/\/dl-ssl.google.com.*\.(deb|zip)  43200 80% 129600 reload-into-ims<br></div><div><br></div><div>5) refresh_pattern <a href="http://dl.google.com">dl.google.com</a>\/.*\.(deb)  129600 100% 129600 reload-into-ims</div><div><br></div><div>6) refresh_pattern <a href="http://dl-ssl.google.com">dl-ssl.google.com</a>\/.*\.(deb)  129600 100% 129600 reload-into-ims</div></div><div><br></div><div><br></div><div>My cache is working fine as at the same time i am able to cache files in oracle servers via following refresh pattern,</div><div><div>refresh_pattern -i <a href="http://download.oracle.com">download.oracle.com</a> 5259487 20% 5259487 override-expire override-lastmod ignore-reload ignore-private ignore-auth</div></div><div><br></div><div><br></div><div>So i am not sure what's the issue with <a href="http://dl.google.com/linux">http://dl.google.com/linux</a> servers. Can anyone give me any clue why it is not working ? anyone out there who are able to cache those files from google?</div><div><br></div><div>Here is the TCP_Miss entry in squid's access.log file for the above file,</div><div><div>04/Oct/2016:16:37:07 +0530.695  78902 192.168.1.76 TCP_MISS/200 6662561 GET <a href="http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb">http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb</a> - HIER_DIRECT/<a href="http://74.125.68.91">74.125.68.91</a> application/x-debian-package</div></div><div><br></div><div>Here is my squid config file,</div><div><a href="http://pastebin.com/raw/jY57XJPp">http://pastebin.com/raw/jY57XJPp</a><br></div><div><br></div><div><br></div><div>Thanks.</div><div>Hardik</div></div>