[11509] in www-talk@info.cern.ch
Re: Enforce reloading of page when using the back-button
daemon@ATHENA.MIT.EDU (William R Green)
Wed Mar 8 12:17:49 2000
Message-Id: <3.0.32.20000308111050.006f37ec@mexicomo.net>
Date: Wed, 08 Mar 2000 11:10:52 -0600
To: Christian =?iso-8859-1?Q?B=F8hn?= <chrb@online.no>, <www-talk@w3.org>
From: William R Green <billg@greensupply.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Resent-From: www-talk@w3.org
Content-Transfer-Encoding: quoted-printable
A simple JavaScript should suit your needs.=20
I dont have my book in front of me right now for specifics, but I do know
there is a function called "onLoad" that will force a reloaded page each
time it is visited. There is also "onSize" that will force a reload upon
resize of the screen. Etc...etc...=20
Any JavaScript book will be extremely informative of these little tricks
and is well worth the investment.=20
At 08:50 PM 3/7/00 +0100, 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 p=
age
>from cache when the back-button is used. (for example IE5 does load it f=
rom
>cache). I would like to avoid this in some cases, and have the browser t=
o
>send a new request so the server could determine if the user is still lo=
gged
>in (ie hasn't clicked any logout button on a page), and if not, show a n=
ot
>logged in page, rather than the previos content of the page.
>
>Is this possible? Thanks a lot in advance!
>
>Christian
>
>
Bill Green
Green Supply
3059 Audrain Road 581
Vandalia, MO 63382
(573) 594-6771 Phone
(573) 594-2211 Fax