后退按钮未重新加载页面
test1.php 有此代码
(
<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
$a=date("D M Y ; h:m:s");
echo $a;
?>
<html>
<head>
<meta http-equiv='Pragma' content='no-cache'/>
<meta http-equiv='Expires' content='-1'/>
</head>
<a href="test2.php">tk</a>
</html>
)
,然后当我访问 test1.php 并移动到 test2.php 然后按后退按钮时,为什么它不显示当前时间而是显示我上次访问它的时间。 这是我之前问题的简单版本
test1.php has this code
(
<?php
header("Cache-Control: no-cache");
header("Pragma: no-cache");
$a=date("D M Y ; h:m:s");
echo $a;
?>
<html>
<head>
<meta http-equiv='Pragma' content='no-cache'/>
<meta http-equiv='Expires' content='-1'/>
</head>
<a href="test2.php">tk</a>
</html>
)
then when i visit test1.php and move to test2.php then on pressing back button why is it not displaying the current time instead displaying the time i last visited it.
its a simpler version of my previous problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的浏览器缓存了之前的响应。
Your browser cached the previous response.