Re: [squid-users] Cache Chrome updates

From: Jasper Van Der Westhuizen <jvdwesthuiz_at_shoprite.co.za>
Date: Tue, 15 Apr 2014 12:05:27 +0000



On Tue, 2014-04-15 at 12:09 +0100, Nick Hill wrote:
> Hi Jaspar
>
> I use an expression like this, which will work on almost all Limux
> machines, Cygwin on windows and I expect Mac OSX or a terminal in
> Android so long as you have a version of grep similar to GNU grep.
>
> echo "http://cache.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe"
> | grep -Pi "pack.google.com/.*\.(exe|crx)"
>
> This shows a match, so I think your expression is OK.
>
> Do you have any refresh_pattern entries earlier in your squid.conf
> which may inadvertently match?
>
> I see some of your requests have a query string attached. Many
> squid.conf recipies have the following, which will block caching of
> URLs with query strings.
> acl QUERY urlpath_regex cgi-bin \?
> no_cache deny QUERY
>
> If you want to see the part of your query string after the ? in your
> log, you will have to add this to your squid.conf:
> strip_query_terms off
>
> But for privacy reasons you may not want to leave this on.
>

Hi Nick

Thanks for the reply.

I have the following refresh_patterns in my config file.

--cut--
refresh_pattern -i microsoft.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|
dat|zip) 10080 80% 43200 ignore-no-cache ignore-no-store ignore-reload
reload-into-ims

refresh_pattern -i windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|
a]|dat|zip|psf) 10080 80% 43200 ignore-no-cache ignore-no-store
ignore-reload reload-into-ims

refresh_pattern -i windows.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|
dat|zip) 10080 80% 43200 ignore-no-cache ignore-no-store ignore-reload
reload-into-ims

#---------------------------
#Google updates
#---------------------------

refresh_pattern -i pack.google.com/.*\.(exe|crx) 10080 80% 43200
override-expire override-lastmod ignore-no-cache ignore-reload
reload-into-ims ignore-private

#--------------------
# Apple
#--------------------

refresh_pattern -i apple.com/.*\.(pkg|dmg|dat) 10080 80% 43200
ignore-no-cache ignore-reload reload-into-ims

#---------------------------
# Cache Adobe updates better
#---------------------------

refresh_pattern armdl.adobe.com/.*\.(exe|msp|msi) 10800 80% 43200
ignore-no-store ignore-reload reload-into-ims

--cut--

I also have a list of single file type refresh patterns below this list.

The only cgi-bin entries I have in my squid conf file are:

hierarchy_stoplist cgi-bin ?

and

refresh_pattern -i (/cgi-bin/|\?) 0 0% 0

I added the strip_query_terms off setting to my QA system config and
tested again.

15/Apr/2014:13:58:29 +0200 302 xxx.xxx.xxx.xxx TCP_MISS/302 1385 GET
http://cache.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe? - DIRECT/173.194.34.64 text/html
15/Apr/2014:13:58:30 +0200 1028 xxx.xxx.xxx.xxx TCP_MISS/200 8704709
GET
http://r2---sn-uxa3vh-j2ue.c.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe?cms_redirect=yes&expire=1397577513&ip=xxx.xxx.xxx.xxx&ipbits=0&ir=1&ms=nvh&mt=1397563090&mv=m&sparams=expire,ip,ipbits&signature=47FA99194E00E36C1FB3677DC81ACAE1F684AD12.64E6B64942EA9AFCF58B5F13EDFF452AC0D54F49&key=cms1 - DIRECT/165.165.38.13 application/x-msdos-program
15/Apr/2014:13:58:36 +0200 156 xxx.xxx.xxx.xxx TCP_MISS/302 1385 GET
http://cache.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe? - DIRECT/173.194.34.64 text/html
15/Apr/2014:13:58:37 +0200 1363 xxx.xxx.xxx.xxx TCP_MISS/200 8704709
GET
http://r2---sn-uxa3vh-j2ue.c.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe?cms_redirect=yes&expire=1397577519&ip=xxx.xxx.xxx.xxx&ipbits=0&ir=1&ms=nvh&mt=1397563090&mv=m&sparams=expire,ip,ipbits&signature=3D4FCBE80DCCF3C6CB9689B2B5006A580FACA0F2.63E7CA08C16498F695CEB745A03E1FFF2343B0F7&key=cms1 - DIRECT/165.165.38.13 application/x-msdos-program
15/Apr/2014:13:59:04 +0200 155 xxx.xxx.xxx.xxx TCP_MISS/302 1385 GET
http://cache.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe? - DIRECT/173.194.34.64 text/html
15/Apr/2014:13:59:05 +0200 962 xxx.xxx.xxx.xxx TCP_MISS/200 8704709
GET
http://r2---sn-uxa3vh-j2ue.c.pack.google.com/edgedl/chrome/win/34.0.1847.116_33.0.1750.154_chrome_updater.exe?cms_redirect=yes&expire=1397577548&ip=xxx.xxx.xxx.xxx&ipbits=0&ir=1&ms=nvh&mt=1397563090&mv=m&sparams=expire,ip,ipbits&signature=4C96A3FEA0F319EEFF155C11212659D682B6F432.1ADE1DE4DA72DAB0333AC1014640C6775BCB5382&key=cms1 - DIRECT/165.165.38.13 application/x-msdos-program


--
Kind Regards
Jasper
Received on Tue Apr 15 2014 - 12:05:39 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 15 2014 - 12:00:09 MDT