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

Reply via email to