Re: [squid-users] header_replace question

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Wed, 13 Aug 2008 04:34:55 +0200

On tis, 2008-08-12 at 18:00 -0500, Ritter, Nicholas wrote:
> When using either Squid 2.6STABLE (latest) or Squid3HEAD, will the
> following work?

Depends on what you want the result to become..

> acl myjar_cache_ctl urlpatch_regex -i .(jar)
> header_access Cache-Control deny all
> header_replace Cache-Control public, s-maxage=14400, max-age=14400

This will replace the header on any outgoing messages send by Squid
(both requests and responses). But it does not change squid's internal
view of the received header.

> This is for overriding the cache-control settings for an
> internal/private Java JRE app where the client downloads the jar files
> from the server and runs them. I want to do this because the client-side
> java JRE is sending a cache-control no-cache setting, and my server is
> following also doing this. I have already set my server to the
> public/max-age, but the client still sends a no-cache directive.

From that description the refresh_pattern ignore-reload option is what
you are really looking for, not header_replace.

Regards
Henrik

Received on Wed Aug 13 2008 - 02:35:00 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 13 2008 - 12:00:03 MDT