php cache

发布时间:2017-10-06 21:41:28 阅读:841次

index.html

<html>
<body>
haha,<a href=index.php>go</a>
</body>
</html>
index.php

<?php
header("Cache-Control:max-age=86400,must-revalidate");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
header( 'Expires:' .gmdate("D, d M Y H:i:s",time()+86400).'GMT');
header("Cache-Control:no-cache,must-revalidate");
header("Pragma:no-cache");
echo "我不刷新!<br>";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
<?php
echo time();
?>
<br>
hello the world!
</body>
</html>

如有问题,可以QQ搜索群1028468525加入群聊,欢迎一起研究技术

支付宝 微信

有疑问联系站长,请联系QQ:QQ咨询
上一篇:mysql中间件

转载请注明:php cache 出自老鄢博客 | 欢迎分享