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

From: Nguyen Huy Quang <huyquangtin4_at_yahoo.com>
Date: Mon, 8 Jun 2009 03:53:50 -0700 (PDT)

Dear Amos,

It's server code.

Thanks for replying,

Quang

----- Original Message ----
From: Amos Jeffries <squid3_at_treenet.co.nz>
To: Nguyen Huy Quang <huyquangtin4_at_yahoo.com>
Cc: squid-users_at_squid-cache.org
Sent: Monday, June 8, 2009 5:42:38 PM
Subject: Re: [squid-users] How to force expire pages

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");

In page code? or server code?

>
> 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.
>
> Please help me out!
>
> Thank you very much,
> Quang
>

Amos
-- Please be using
  Current Stable Squid 2.7.STABLE6 or 3.0.STABLE15
  Current Beta Squid 3.1.0.8 or 3.0.STABLE16-RC1

      
Received on Mon Jun 08 2009 - 10:53:57 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 08 2009 - 12:00:02 MDT