how to force browser to re-request page after history.back()

Posted by yellowred on Stack Overflow See other posts from Stack Overflow or by yellowred
Published on 2010-06-11T08:59:56Z Indexed on 2010/06/11 9:02 UTC
Read the original article Hit count: 155

Filed under:
|
|

Hi, I've got two scripts: 1.php and 1.php. Here they are:

1.php

<?php

header('Pragma: no-cache');
header('Cache-Control: max-age=1; no-cache');
header('Expires: Tue, 1 May 1985 01:10:00 GMT');
header('ETag: "'.md5(rand(1, 1000)).'"');

print date('H:i:s');
?>
<a href="2.php">pay</a>

2.php

<a href="javascript:history.back()">back</a>

Visitor lands on 1.php and then goes to 2.php. I want browser to re-request 1.php after vistor's click on "back" link. On current state it doesn't work. How it can be managed?

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript