[squid-users] Cache-control modification and accelarator mode

From: Gabriel Wicke <groups@dont-contact.us>
Date: Thu, 18 Dec 2003 02:49:23 +0100

Hi,

i'm using squid as an accelarator for Plone, a CMS built on Zope.

On the xhtml content i set the Cache-control header as
must-revalidate,max-age=0,s-maxage=36000.
The browser will always check back for changes, squid will get a purge
request if something changes.

This breaks as soon as some transparent proxy gets in the way that picks
up the s-maxage header.

So i'd like to strip any s-maxage headers or set them to 0 when passing
through squid. I took a look at header_access and header_replace:

header_access Cache-control deny all
header_replace Cache-control Must-revalidate,max-age=0,s-maxage=0

This makes the browser check back for everything on every request
(stylesheets, pics...), very slow.

What i'd like to achieve is a conditional replace only if s-maxage was
included in the original header. Is this possible with some acl matching
magic?

Thanks for any ideas!

Gabriel
Received on Wed Dec 17 2003 - 18:50:23 MST

This archive was generated by hypermail pre-2.1.9 : Thu Jan 01 2004 - 12:00:16 MST