Re: refresh the page on back

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

 



use the cache disable headers in HTML as well as PHP for the server
side headers.
pick any of the two methods.


1-HTML caching control: 
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="cache-control" content="must-revalidate" />
<meta http-equiv="cache-control" content="proxy-revalidate" />
<meta http-equiv="expires" content="Sat, 06 Dec 2003 1:00:00 GMT" />

2-PHP server headers for caching control:
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);

// HTTP/1.0
header("Pragma: no-cache");




On Thu, 14 Oct 2004 12:19:27 +0530, balwantsingh
<balwantsingh@xxxxxxxxxxxxx> wrote:
> first of all excuse me for putting the non related question in this forum.
> but i am sure someone will help me.
> 
> i want that whenever users press the browser back button, the page should be
> refreshed and than displayed.
> 
> thanks for your help in advance.
> 
> with best wishes
> balwant
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
M.Saleh.E.G
97150-4779817

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux