how to force browser to re-request page after history.back()
- by yellowred
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?