[squid-users] maps.google.com image cacheing

From: Brett <bml@dont-contact.us>
Date: Thu, 22 Sep 2005 15:35:02 +1000

Greetings,
Recently I have observed that the images on google maps are not getting
caught in the squid cache (squid-2.5.9-10 on Debian Sarge). The actual
images come in the form:
http://kh.google.com/kh?v=3&t=tsrrtsqrrqqsq

Is there any way I can cache these images in squid at all? (I don't mind
patching, or violating the HTTP standard a bit (ala: reload-into-ims) as
the cache is only serverd to a few people).

Thanks,
Brett

The Cacheability Engine (http://www.web-caching.com/cacheability.html)
tells me this:
{
http://kh.google.com/kh?v=3&t=tsrrtsqrrqqsq
Expires 52 weeks 1 day from now (Fri, 22 Sep 2006 05:25:52
GMT)
Cache-Control -
Last-Modified 39 weeks 6 days ago (Fri, 17 Dec 2004 04:58:08 GMT)
validation returned same object
ETag -
Content-Length 19.7K (20220)
Server Keyhole Server 2.4
This object will be fresh for 52 weeks 1 day. It has a validator
present, but when a conditional request was made with it, the same
object was sent anyway.
Because it contains a query ('?') in the URL, many caches will not keep
this object.
}

Following are the headers for the request:
{
GET http://kh.google.com/kh?v=3&t=tsrrtsqrrqqsq HTTP/1.1
Host: kh.google.com
User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.10)
Gecko/20050716 Firefox/1.0.6
Accept: image/png,*/*;q=0.5
Accept-Language: en-au,en;q=0.7,en-us;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer:
http://maps.google.com/maps?ll=-32.272039,150.893784&spn=0.070736,0.123124&t=k&hl=en
Cookie: khcookie=<snip>

HTTP/1.x 200 OK
Content-Type: image/jpeg
Expires: Fri, 22 Sep 2006 04:38:28 GMT
Last-Modified: Fri, 17 Dec 2004 04:58:08 GMT
Server: Keyhole Server 2.4
Content-Length: 20220
Date: Thu, 22 Sep 2005 04:38:28 GMT
X-Cache: MISS from <domain>.com.au
X-Cache-Lookup: MISS from <domain>.com.au:3128
Proxy-Connection: close
Connection: close
}
Received on Wed Sep 21 2005 - 23:35:08 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT