[squid-users] Caching http google deb files

Hardik Dangar hardikdangar+squid at gmail.com
Tue Oct 4 13:05:48 UTC 2016


Hello,

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 ).

http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.deb

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,

HTTP Response Header

Status: HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 6662208
Content-Type: application/x-debian-package
Etag: "fa383"
Last-Modified: Thu, 15 Sep 2016 19:24:00 GMT
Server: downloads
Vary: *
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-Xss-Protection: 1; mode=block
Date: Tue, 04 Oct 2016 12:51:57 GMT
Alt-Svc: quic=":443"; ma=2592000; v="36,35,34,33,32"
Connection: close


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

1) refresh_pattern dl-ssl.google.com  2160 100% 10080 ignore-no-cache
reload-into-ims

2) refresh_pattern
http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb
129600 100% 129600 reload-into-ims

3) refresh_pattern dl-ssl.google.com\/dl\/linux\/direct/.*\(.deb|.zip)
43200 80% 129600 reload-into-ims override-lastmod ignore-no-store
refresh-ims store-stale

4) refresh_pattern ^http:\/\/dl-ssl.google.com.*\.(deb|zip)  43200 80%
129600 reload-into-ims

5) refresh_pattern dl.google.com\/.*\.(deb)  129600 100% 129600
reload-into-ims

6) refresh_pattern dl-ssl.google.com\/.*\.(deb)  129600 100% 129600
reload-into-ims


My cache is working fine as at the same time i am able to cache files in
oracle servers via following refresh pattern,
refresh_pattern -i download.oracle.com 5259487 20% 5259487 override-expire
override-lastmod ignore-reload ignore-private ignore-auth


So i am not sure what's the issue with http://dl.google.com/linux servers.
Can anyone give me any clue why it is not working ? anyone out there who
are able to cache those files from google?

Here is the TCP_Miss entry in squid's access.log file for the above file,
04/Oct/2016:16:37:07 +0530.695  78902 192.168.1.76 TCP_MISS/200 6662561 GET
http://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_i386.deb
- HIER_DIRECT/74.125.68.91 application/x-debian-package

Here is my squid config file,
http://pastebin.com/raw/jY57XJPp


Thanks.
Hardik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20161004/b27d8d6f/attachment.html>


More information about the squid-users mailing list