caching "dynamic" content

From: Adrian Chadd <adrian@dont-contact.us>
Date: Thu, 15 Nov 2007 09:37:37 +0900

G'day,

I'd like to propose a Squid modification - to cache "dynamic" content
thats playing "good".

An example is from Google maps, who are now actually returning Expires:
headers:

violet:~/work/squid/squid-2-HEAD/tools adrian$ ./squidclient -m HEAD 'http://mt0.google.com/mt?n=404&v=w2.61&x=14&y=10&zoom=13'
HTTP/1.0 200 OK
Content-Type: image/png
Expires: Fri, 14 Nov 2008 00:01:05 GMT
Last-Modified: Fri, 17 Dec 2004 04:58:08 GMT
Server: Keyhole Server 2.4
Content-Length: 2415
Date: Thu, 15 Nov 2007 00:01:05 GMT
Age: 252
X-Cache: HIT from violet.local
Via: 1.0 violet.local:3128 (squid/2.HEAD-CVS)
Proxy-Connection: close

I can't use the rep_header ACL with 'cache' as that particular lookup is done
(AFAICT) before the reply is handled, so this silently fails:

acl HaveExpiresRepHdr rep_header Expires ^[A-Z]
acl HaveLastModifiedRepHdr rep_header Last-Modified ^[A-Z]

cache allow QUERY HaveExpiresRepHdr
cache allow QUERY HaveLastModifiedRepHdr
cache deny QUERY

Any ideas? (Henrik?)

Adrian

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
Received on Wed Nov 14 2007 - 17:34:02 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:05 MST