The no-cache header is sent by the client.
You might be able to work around this by using the reload-into-ims
refresh_pattern option.
refresh_pattern http://windowsupdate.microsoft.com/ 0 80% 20160
reload-into-ims
Also, Windows Update seems to make extensive use of Range requests which
Squid has a bit of problems to cache.
However, the request pattern below is a bit inconclusive as there is one
object being retrieved (ident.cab), and there the result looks a bit
weird (the second one is a HIT, but it is a "reload" request that should
have been a "TCP_CLIENT_REFRES_*"). It also seems your client had
Windows Update files cached.
Regards
Henrik Nordström
Squid Hacker
David Findlay wrote:
>
> Here are some samples from my more detailed log, could someone let me know
> what's happening? Windows update just won't come off the cache. It looks to
> me as if there is a "no-cache" header in the windows update site, so is there
> a way I can force it to cache? I can post the entire log file if you like and
> also the config. Thanks,
>
> David
>
> 1004654474.014 2126 192.168.0.30 TCP_MISS/200 484 HEAD
> http://windowsupdate.microsoft.com/R836/v31site/ident.cab -
> DIRECT/207.68.131.27 application/octet-stream [Accept: */*\r\nUser-Agent:
> QueueManager File Query\r\nHost:
> windowsupdate.microsoft.com\r\nContent-Length: 0\r\nPragma: no-cache\r\n]
> [HTTP/1.0 200 OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu, 01 Nov 2001
> 22:41:12 GMT\r\nContent-Type:
> application/octet-stream\r\nAccept-Ranges: bytes\r\nLast-Modified: Fri, 19
> Oct 2001 16:35:13 GMT\r\nETag: "37e5e16bc58c11:87c"\r\nContent-Length:
> 7696\r\nX-Cache: MISS from proxy2.bne.pacific.net.au\r\nX-Cache-Lookup: NONE
> from proxy2.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
>
> 1004654490.362 559 192.168.0.30 TCP_MISS/200 484 HEAD
> http://windowsupdate.microsoft.com/R836/v31site/ident.cab -
> DIRECT/207.68.131.27 application/octet-stream [Accept: */*\r\nUser-Agent:
> Progressive Download Recheck Size\r\nHost:
> windowsupdate.microsoft.com\r\nContent-Length: 0\r\nPragma: no-cache\r\n]
> [HTTP/1.0 200 OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu, 01 Nov 2001
> 22:41:29 GMT\r\nContent-Type: application/octet-stream\r\nAccept-Ranges:
> bytes\r\nLast-Modified: Fri, 19 Oct 2001 16:35:13 GMT\r\nETag:
> "37e5e16bc58c11:87a"\r\nContent-Length: 7696\r\nX-Cache: MISS from
> proxy3.bne.pacific.net.au\r\nX-Cache-Lookup: NONE from
> proxy3.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
>
> 1004654491.132 521 192.168.0.30 TCP_MISS/200 485 HEAD
> http://windowsupdate.microsoft.com/autoupd/rel1083.11/x86/mil/en/AUPROTO.CAB
> - DIRECT/207.68.131.27 application/octet-stream [Accept: */*\r\nUser-Agent:
> QueueManager File Query\r\nHost:
> windowsupdate.microsoft.com\r\nContent-Length: 0\r\nPragma: no-cache\r\n]
> [HTTP/1.0 200 OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu, 01 Nov 2001
> 22:41:29 GMT\r\nContent-Type: application/octet-stream\r\nAccept-Ranges:
> bytes\r\nLast-Modified: Tue, 06 Jun 2000 02:18:42 GMT\r\nETag:
> "26a12a895dcfbf1:87c"\r\nContent-Length: 6460\r\nX-Cache: MISS from
> proxy2.bne.pacific.net.au\r\nX-Cache-Lookup: NONE from
> proxy2.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
>
> 1004654495.072 2118 192.168.0.30 TCP_CLIENT_REFRESH_MISS/200 1526 GET
> http://windowsupdate.microsoft.com/R836/v31site/ident.cab -
> DIRECT/207.68.131.27 application/octet-stream [Accept: */*\r\nRange:
> bytes=0-1024\r\nUser-Agent: Progressive Download HTTP check\r\nHost:
> windowsupdate.microsoft.com\r\nPragma: no-cache\r\n] [HTTP/1.0 200
> OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu, 01 Nov 2001 22:41:32
> GMT\r\nContent-Type: application/octet-stream\r\nAccept-Ranges:
> bytes\r\nLast-Modified: Fri, 19 Oct 2001 16:35:13 GMT\r\nETag:
> "37e5e16bc58c11:87c"\r\nContent-Length: 7696\r\nX-Cache: MISS from
> proxy2.bne.pacific.net.au\r\nX-Cache-Lookup: HIT from
> proxy2.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
>
> 1004654495.074 0 192.168.0.30 TCP_HIT/200 1588 GET
> http://windowsupdate.microsoft.com/R836/v31site/ident.cab - NONE/-
> application/octet-stream [Accept: */*\r\nUser-Agent: Progressive Download
> HTTP check\r\nHost: windowsupdate.microsoft.com\r\nPragma: no-cache\r\nRange:
> bytes=0-2048\r\n] [HTTP/1.0 200 OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu,
> 01 Nov 2001 22:41:32 GMT\r\nContent-Type:
> application/octet-stream\r\nAccept-Ranges: bytes\r\nLast-Modified: Fri, 19
> Oct 2001 16:35:13 GMT\r\nETag: "37e5e16bc58c11:87c"\r\nContent-Length:
> 7696\r\nX-Cache: MISS from proxy2.bne.pacific.net.au\r\nX-Cache-Lookup: HIT
> from proxy2.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
>
> 1004654504.171 4592 192.168.0.30 TCP_MISS/200 485 HEAD
> http://windowsupdate.microsoft.com/autoupd/rel1083.11/x86/mil/en/AUPROTO.CAB
> - DIRECT/207.68.131.27 application/octet-stream [Accept: */*\r\nUser-Agent:
> Progressive Download\r\nHost:
> windowsupdate.microsoft.com\r\nContent-Length: 0\r\nPragma: no-cache\r\n]
> [HTTP/1.0 200 OK\r\nServer: Microsoft-IIS/5.0\r\nDate: Thu, 01 Nov 2001
> 22:41:38 GMT\r\nContent-Type: application/octet-stream\r\nAccept-Ranges:
> bytes\r\nLast-Modified: Tue, 06 Jun 2000 02:18:42 GMT\r\nETag:
> "26a12a895dcfbf1:87a"\r\nContent-Length: 6460\r\nX-Cache: MISS from
> proxy3.bne.pacific.net.au\r\nX-Cache-Lookup: NONE
> from proxy3.bne.pacific.net.au:8080\r\nConnection: keep-alive\r\n\r]
Received on Thu Nov 01 2001 - 23:57:59 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:03:50 MST