FW: Reload/refresh web page

FW: Reload/refresh web page

am 04.05.2007 17:38:45 von Bill Bolte

------_=_NextPart_001_01C78E62.4D2DB65E
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

=20

________________________________

From: Juan Ignacio Borda [mailto:webmaster@baexporta.gba.gov.ar]=20
Sent: Friday, May 04, 2007 10:28 AM
To: Bill Bolte
Subject: Re: [PHP-WIN] Reload/refresh web page


ahhah i'm a cache administrator as well as php developer there is no
easy solution to avoid caching either in client or in proxys (because we
can twist rules to caching you up) but there are some headers you can
add to php pages that prevent pages to being cached

header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Expires: Mon, 19 Mar 1999 08:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");



Aaah, so it's a caching issue then. Is that particular content
using
PHP's caching mechanism or is it simply the browser's cache
settings
mucking things up?
=09
AJAX techniques run into the browser cache issue all the time
(not that
your doing anything with AJAX here). One way to get around this
is by
putting a random value in the querystring when calling a script
by and
HTTP JavaScript call. Maybe by borrowing this concept and put a
random
value in the querystring (that servers no purpose) will fool the
browser
and load the new content.
=09
=09
=09
-----Original Message-----
From: Alf Stockton [mailto:alf@stockton.co.za]=20
Sent: Friday, May 04, 2007 10:02 AM
To: php windows
Subject: Re: [PHP-WIN] Reload/refresh web page
=09
Bill Bolte wrote:
=20

Why isn't it being retrieved the first time the page is
called?
=09
=20

It is but the page I need to reload is a dynamic page that may
be used=20
as a menu to call another php that would be used to update a
database=20
contents of which were displayed on the original page and on
return to=20
the dynamic page I want this new data to be included.
=09
=20


------_=_NextPart_001_01C78E62.4D2DB65E--