Re: [squid-users] How to override expires, maxage, s-maxage on reverse proxy?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 30 Jul 2007 04:31:24 +0200

On lör, 2007-07-28 at 14:50 -0700, Ricardo Newbery wrote:

> I looked at refresh_pattern and it's override-expire and ignore-no-
> cache options but I'm not sure I can leverage this. First, because
> it isn't clear whether these options will override max-age and s-
> maxage if they're present in the response.

It does.

> And second, because I
> need this behavior to be selectively applied (probably via a response
> header set by the CMS) since not *all* items on the CMS will
> automatically generate purge requests and there isn't a good way to
> filter these by path.

A different problem..

You need to add a custom CC header, and teach Squid to use this in favor
of s-maxage/max-age.

> I guess what I'm looking for is something like an s-maxage that will
> be applied *only* to the reverse proxy and not to anything else
> upstream.

Indeed. Trouble is there is no standardized such header..

If you write a patch implementing such header please submit it to
squid-dev@squid-cache.org.

Regards
Henrik
Received on Sun Jul 29 2007 - 20:31:36 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:04 MDT