[11508] in www-talk@info.cern.ch
Re: Enforce reloading of page when using the back-button
daemon@ATHENA.MIT.EDU (HUI XIONG)
Wed Mar 8 00:24:16 2000
Message-Id: <38C5DF38.3F0E8055@comp.nus.edu.sg>
Date: Wed, 08 Mar 2000 13:03:53 +0800
From: HUI XIONG <xionghui@comp.nus.edu.sg>
Mime-Version: 1.0
To: www-talk@w3.org
Cc: chrb@online.no
Content-Type: multipart/mixed;
boundary="------------BEBF9FC41DE91FF7892286AD"
Resent-From: www-talk@w3.org
This is a multi-part message in MIME format.
--------------BEBF9FC41DE91FF7892286AD
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by www19.w3.org id AAA01803
Hi Christian,
You should use the following three headers together:
Cache-Control: no-cache
Pragma: no-cache
Expires: 0
In this way, you can get what you want. As for the problem you
mentioned, you
may need to clean up all the pages in the browser cache before you do
any test.
I made a test Web site, you may see the effect.
http://137.132.96.195/vagent
Note: I use Cache-busting techniques only for research purpose. I do
agree with
Mr. Dan Connolly. It's not good to use this kind of techniques for Web
design.
Hui Xiong
Christian B=F8hn wrote:
> Hi,
>
> Is there a way to make the browser reload a page from server when the
> back-button is used. I have tried the "Pragma", "Cache-control" and
> "Expires" headers, but it doesn't prevent the browser from loading the
page
> from cache when the back-button is used. (for example IE5 does load it
from
> cache). I would like to avoid this in some cases, and have the browser
to
> send a new request so the server could determine if the user is still
logged
> in (ie hasn't clicked any logout button on a page), and if not, show a
not
> logged in page, rather than the previos content of the page.
>
> Is this possible? Thanks a lot in advance!
>
> Christian
--------------BEBF9FC41DE91FF7892286AD
Content-Type: text/x-vcard; charset=us-ascii;
name="xionghui.vcf"
Content-Description: Card for HUI XIONG
Content-Disposition: attachment;
filename="xionghui.vcf"
Content-Transfer-Encoding: 7bit
begin:vcard
n:Xiong;Hui
tel;work:(065) 874-2779
x-mozilla-html:FALSE
url:http://www.comp.nus.edu.sg/~xionghui
org:Department of Computer Science;National University of Singapore
adr:;;;;;;Singapore
version:2.1
email;internet:xionghui@comp.nus.edu.sg
title:Master Student
fn:http://www.comp.nus.edu.sg/~xionghui
end:vcard
--------------BEBF9FC41DE91FF7892286AD--