Re: [squid-users] cache-control headers

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Wed, 12 May 2010 22:53:40 +0000

On Wed, 12 May 2010 08:45:27 -0700 (PDT), Jonathan Lunn
<j46lunn_at_yahoo.com>
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
Received on Wed May 12 2010 - 22:53:44 MDT

This archive was generated by hypermail 2.2.0 : Thu May 13 2010 - 12:00:06 MDT