Is it possible for PHP to generate a fresh page on every Javascript history.go(-1) ?
Posted
by Ho
on Stack Overflow
See other posts from Stack Overflow
or by Ho
Published on 2010-03-18T16:10:06Z
Indexed on
2010/03/18
16:21 UTC
Read the original article
Hit count: 138
Hello, I have a PHP page (a.php) which is already sending these headers:
<?php
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Pragma: no-cache');
?>
And on the PHP page (a.php) , it has a link to another page (b.html)
on b.html, it has a javascript code to:
<script type="text/javascript">
history.go(-1);
</scirpt>
It seems to me that, when the browser is "going back" to a.php,the content isn't fresh at all.
Would you please advise me if generating a completely fresh page on history.go(-1)
is possible?
Thank you.
© Stack Overflow or respective owner