Re: [squid-users] Strange Vary:Cookie behaviour between Squid and IE

From: Henrik Nordstrom <[email protected]>
Date: Wed, 19 Oct 2005 23:21:48 +0200 (CEST)

On Wed, 19 Oct 2005, Henrik Nordstrom wrote:

> Vary and PURGE is a complicated combination.. you need to issue PURGE
> requests of each unique combination seen of the Vary listed headers. This is
> complete headers as sent by the clients, not just the pieces the web server
> actually cares about..
>
> If you don't you only purge Squids knowledge of that this object varies, and
> the next request will rebuild this knowledge.

A crazy idea, but to get around this oddness of the Vary support in
Squid-2.5 you could include a custom header in your Vary header on the
form

X-change-NNNN

where NNNN is a unique identifier of the last change of the document. By
changing this number after an update any older cached entity will be
forgotten by the cache.

This header does not need to be present anywhere except for the Vary
header.

A better alternative is probably to look into using the ETag patch
available from devel.squid-cache.org. This makes the Vary support in
Squid-2.5 much saner, especially if your server is supporting
"If-None-Match".

Regards
Henrik
Received on Wed Oct 19 2005 - 15:21:51 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Nov 01 2005 - 12:00:04 MST