
July 9th, 2004, 10:22 AM
|
|
Contributing User
|
|
Join Date: May 2004
Location: Estonia
Posts: 99
Time spent in forums: < 1 sec
Reputation Power: 5
|
|
|
Prevent caching
How i can I prevent a page from being cached. Im using php so it should be possible. I asked in php forum too but they didnt know about wap browsers. Anyways, here is the code for the whole page:
Code:
<?php
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-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: text/vnd.wap.wml");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""
. " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
?>
<wml>
<card id="view" title="View guestbook">
<p><a href="http://jailbox.yahkiddin.com">Back to index</a></p>
<p>
<a href="signbook.php">Sign guestbook</a>
</p>
<p><br/></p>
<?php
include("entries.txt");
?>
</card>
</wml>
I found some headers and added em but they dont seem to work
|