previous page button of browser opening on-rev server page
paolo mazza
mazzapaoloitaly at gmail.com
Tue Jul 26 02:40:41 EDT 2011
Thank you all. Trying to get rid of the browser cache setting the
proper headings (as Shao Sean suggested) , I came up with these 2
solutions:
PHP:
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Fri, 30 oct 1998 14:18:41 GMT");
?>
<?php
$dateTime = date("Y:m:d-H:i:s");
function getDateTime() {
global $dateTime;
return $dateTime;
}
?>
<html>
<head>
</head>
<body>
<?php echo getDateTime() ?>
</body>
</html>
LIVECODE ... much easyer ;-)
<?rev
put "Cache-Control: no-cache, must-revalidate" & return & "Expires:
Fri, 30 oct 1998 14:18:41 GMT" into MYHEADERS
set the httpHeaders to MYHEADERS
put the long time
?>
HOWEVER, the first solution (PHP) sets the heathers properly but still
when I move back and forth with the buttons of the browser I get the
old time (cache). The second one (LiveCode) does NOT set the headers
properly (is it a bug?) and the page remains in the browser cache.
Any idea? All the best
Paolo Mazza
More information about the use-livecode
mailing list