[squid-users] Re: How to force expire pages

From: Oliver Schoett <oliver.schoett_at_capgemini-sdm.com>
Date: Wed, 15 Jul 2009 11:23:02 +0200

Nguyen Huy Quang wrote:
> Hi every body,
>
> I use the following code to force expire some pages (method POST) when user clicks on Back button of IE.
>
> response.setHeader("Expires", "Thu, 19 Nov 1981 08:52:00 GMT");
> response.setHeader("Cache-Control", "max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
> response.setHeader("Pragma", "no-cache");
>
> The problem is when I configures my browser to pass through a proxy (Squid), this code doesn't work. That means when user clicks on Back button, he will see the precedent page in the browser's history instead of the "Webpage has expired" error. Even when I configure Squid to disable cache, it doesn't work
>

Browser history mechanisms work differently from caches, as explained in
RFC 2616, Section 13.13. In particular, a history mechanism may display
the content last seen by the user even if it has expired.

Regards,

Oliver Schoett
Received on Wed Jul 15 2009 - 09:30:08 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 15 2009 - 12:00:03 MDT