后退按钮未重新加载页面

发布于 2024-09-17 18:14:32 字数 451 浏览 2 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

美羊羊 2024-09-24 18:14:32

您的浏览器缓存了之前的响应。

Your browser cached the previous response.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文