FW: Reload/refresh web page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 

________________________________

From: Juan Ignacio Borda [mailto:webmaster@xxxxxxxxxxxxxxxxxxxx] 
Sent: Friday, May 04, 2007 10:28 AM
To: Bill Bolte
Subject: Re:  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?
	
	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.
	
	
	
	-----Original Message-----
	From: Alf Stockton [mailto:alf@xxxxxxxxxxxxxx] 
	Sent: Friday, May 04, 2007 10:02 AM
	To: php windows
	Subject: Re:  Reload/refresh web page
	
	Bill Bolte wrote:
	  

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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux