Re: reloading a webpage?

From: Date: Sat, 10 Mar 2001 17:23:59 +0000
Subject: Re: reloading a webpage?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-43324@lists.php.net to get a copy of this message
Hi, I think you could use headers to prevent the browser from caching the page, for example : header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT'); header('Cache-Control: no-cache, must-revalidate'); header('Pragma: no-cache'); Take a look at what the manual says about headers, i'm not just this code is accurate, but thats the idea. HTH, -- OliNether. "Fai" <fai5@hknet.com> wrote : > > Subject: [PHP] reloading a webpage? > > Does any body know how to ensure the web page will clear the previous > history (cache) and reload the new data when the same webpage re-displays to > browser? > > That is the current webpage content is based on previous webpage input, and > when we press "back" button to re-enter previous webpage input then we press > "forward" and this current page will know to update the content and display > new one to browser. >

« previous php.general (#43324) next »