On Wed, 12 May 2010 08:45:27 -0700 (PDT), Jonathan Lunn <j46lunn@xxxxxxxxx> wrote: > Hello squid-users, > > > I'm successfully using Squid (3.0.STABLE25) with ESI enabled but, I can't > seem to cache anything that has a cache-control: max-age less than 60 > seconds. At present I'm having to set cache-control: max-age header at 61 > seconds in order to cache. > > e.g; > > <?php > header('Surrogate-Control: s-maxage=61, content="ESI/1.0"'); > header('Cache-Control: max-age=61' ); > > ... > > ?> > > Am I missing something? The 3.0 implementation of ESI completely ignored the Cache-Control header. This has been fixed in 3.1. Try adding max-age to your Surrogate-Control header as well if you want that to apply on 3.0 surrogates. The 60 second issue has been mentioned before but the cause has not yet been tracked down and fixed AFAIK. In this case it may be a default staleness estimate due to ignoring the CC header. Amos