|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi! I am trying to refresh a page whenever user click the back button or bookmark the page......I have tried the php header() function but it seen like nothing happen. So, i am asking for any helpful javascript to use inside to php code or not, is yes, how....
|
|
#2
|
|||
|
|||
|
none of those HTML headers seem to work universally - some work only with proxy caches - some only with client caches - it's just confusing and useless!!!
the way to go is HTTP headers... here's all u need to know http://www.mnot.net/cache_docs/ Ajmal. |
|
#3
|
|||
|
|||
|
Try this before anything all the way at the top with no whitespace in PHP.
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Pragma: no-cache"); // HTTP/1.0 |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Refresh the page using javascript in PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|