[squid-users] Windows caching

Jasper Van Der Westhuizen jvdwesthuiz at shoprite.co.za
Fri Oct 7 12:59:41 UTC 2016


Hi all

I am trying to tweak my configuration to better catch Windows 10
 updates. I download the file manually so at the first log entry I see
the TCP_HIT/206, then after the download is completed I get
TCP_HIT/200. But If I download the file again I get another TCP_HIT/206
and the file is downloaded again.

Any idea why it's doing this?

1475843695.498 241787 10.7.48.42 TCP_HIT/206 1801411025 GET http://au.v
4.download.windowsupdate.com/d/msdownload/update/software/secu/2016/09/
windows10.0-kb3185614-x64_5_c3b5d298472570c878c124
d05a0ef6fb3e088506.psf - HIER_NONE/- application/octet-stream
1475844229.809 238798 10.7.48.42 TCP_HIT/200 1801413860 GET http://au.v
4.download.windowsupdate.com/d/msdownload/update/software/secu/2016/09/
windows10.0-kb3185614-x64_5_c3b5d298472570c878c124
d05a0ef6fb3e088506.psf - HIER_NONE/- application/octet-stream
1475844244.273      0 10.7.48.42 TCP_HIT/206 498 GET http://au.v4.downl
oad.windowsupdate.com/d/msdownload/update/software/secu/2016/09/windows
10.0-kb3185614-x64_5_c3b5d298472570c878c124d05a0ef
6fb3e088506.psf - HIER_NONE/- application/octet-stream
1475844403.706 159429 10.7.48.42 TCP_HIT_ABORTED/206 1165844993 GET htt
p://au.v4.download.windowsupdate.com/d/msdownload/update/software/secu/
2016/09/windows10.0-kb3185614-x64_5_c3b5d298472570
c878c124d05a0ef6fb3e088506.psf - HIER_NONE/- application/octet-stream
1475844648.832 238010 10.7.48.42 TCP_HIT/200 1801413860 GET http://au.v
4.download.windowsupdate.com/d/msdownload/update/software/secu/2016/09/
windows10.0-kb3185614-x64_5_c3b5d298472570c878c124
d05a0ef6fb3e088506.psf - HIER_NONE/- application/octet-stream
1475844658.045      0 10.7.48.42 TCP_HIT/206 498 GET http://au.v4.downl
oad.windowsupdate.com/d/msdownload/update/software/secu/2016/09/windows
10.0-kb3185614-x64_5_c3b5d298472570c878c124d05a0ef
6fb3e088506.psf - HIER_NONE/- application/octet-stream


My config file contains:


--cut--
coredump_dir /var/cache/squid/
cache_dir aufs /var/cache/squid/ 20480 32 256
cache_replacement_policy heap lfuda
memory_replacement_policy lru

################

# CACHE TWEAKING

################
acl Windows_Updates dstdomain .windowsupdate.com
range_offset_limit 5 GB Windows_Updates
range_offset_limit 0
cache_mem 4096 MB
minimum_object_size 0 bytes
maximum_object_size 5 GB
quick_abort_min -1

dns_v4_first on
strip_query_terms off
ipcache_size 8192
fqdncache_size 8192

###################
### DEBUG Options #
###################

debug_options ALL,1 2,4

######################################################################
#                       Custom Refresh patterns
######################################################################

#--------------------------------------
# Added to better cache windows updates
#--------------------------------------

refresh_pattern -i (get_video\?|videoplayback\?|videodownload\?) 10080
80% 43200 override-expire ignore-reload reload-into-ims ignore-private

refresh_pattern -i
\.(mp2|mp3|mid|midi|mp[234]|wav|ram|ra|rm|au|3gp|m4r|m4a)(\?.*|$) 10080
80% 43200 override-expire ignore-reload reload-into-ims ignore-private

refresh_pattern -i
\.(mpg|mpeg|mp4|m4v|mov|avi|asf|wmv|wma|dat|flv|swf)(\?.*|$) 10080 80%
43200 override-expire ignore-reload reload-into-ims ignore-private

refresh_pattern -i
\.(jpeg|jpg|jpe|jp2|gif|tiff?|pcx|png|bmp|pic|ico)(\?.*|$) 10080 80%
43200 override-expire ignore-reload reload-into-ims ignore-private

refresh_pattern -i
\.(chm|dll|doc|docx|xls|xlsx|ppt|pptx|pps|ppsx|mdb|mdbx)(\?.*|$) 10080
80% 43200 override-expire ignore-reload reload-into-ims ignore-private

refresh_pattern -i \.(txt|conf|cfm|psd|wmf|emf|vsd|pdf|rtf|odt)(\?.*|$)
10080 80% 43200 override-expire ignore-reload reload-into-ims ignore
-private

refresh_pattern -i
\.(class|jar|exe|gz|bz|bz2|tar|tgz|zip|gzip|arj|ace|bin|cab|msi|rar|esd
|psf)(\?.*|$) 10080 80% 43200 override-expire ignore-reload reload-into
-ims ignore-private

refresh_pattern -i
.windowsupdate.com/.*\.(class|exe|bin|cab|msi|esd|psf)(\?.*|$) 10080
80% 43200 reload-into-ims

refresh_pattern -i \.(htm|html|mhtml|css|js)(\?.*|$) 1440 90% 86400
override-expire ignore-reload reload-into-ims



--
Kind Regards
Jasper




Disclaimer:
http://www.shopriteholdings.co.za/Pages/ShopriteE-mailDisclaimer.aspx



More information about the squid-users mailing list