[squid-users] Can squid3 cache xbox one downloads?
Amos Jeffries
squid3 at treenet.co.nz
Tue Feb 2 22:15:57 UTC 2016
On 2/02/2016 6:12 p.m., mitch clements wrote:
> After getting the xbox 360's to grab downloads from squid cache I then
> tried to get the xbox one to do the same thing. problem is xbox one is
> going through squid but squid isn't caching files. The xbox one uses http
> and downloads from 2 addresses that are identical.
>
> I was reasearching steam game downloads with squid and started to look at
> refresh patterns but not sure if it would work. This is what I have tried
> but is this correct?
>
> refresh_pattern ([^.]+.|)dlassets.xboxlive.com/.*\. 4320 100% 43200
> reload-into-ims;
>
> The link I got it from was testing a download of Lego Marvel Super Heroes
> demo.
>
> Link for that game xbox is downloading from:
> http://dlassets.xboxlive.com/public/content/a9825b2f-593b-4ffa-91d0-53e15df7053b/52765cb5-e690-4c30-b3ce-a777a5d46c54/1.0.0.1.56f350ea-515e-41b1-9fde-e0d1f971aa14/a9825b2f-593b-4ffa-91d0-53e15df7053b_1.0.0.1_neutral__zjr0dfhgjwvde
>
The response for that is:
HTTP/1.1 200 OK
Accept-Ranges: bytes
Server: AkamaiNetStorage
Last-Modified: Tue, 17 Dec 2013 10:51:29 GMT
ETag: "308bce5cdee252f0473ee31d1db5590c:1387278990"
Content-Length: 984907776
Cache-Control: max-age=370380
Date: Tue, 02 Feb 2016 22:06:29 GMT
Connection: close
...
So yes it is cacheable. However;
a) the size is nearly 1GB, so unless you have configured Squid with a
disk cache large enough to store it and set maximum_object_size as well
(default is 4MB) then the object is too big to be routinely cached.
and b) the current age of the object already exceeds max-age for storage
by several years. You can expect some versions of Squid to revalidate it
on each request even if cached.
Amos
More information about the squid-users
mailing list