PHP 不让标准浏览器,firfox,chrome等走浏览器的缓存页面

或在HTML页面里加:

<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache,no-store, must-revalidate">

<META HTTP-EQUIV="pragma" CONTENT="no-cache">

<META HTTP-EQUIV="expires" CONTENT="0">

或在PHP里输出header:

<?php

header("Cache-control:no-cache,no-store,must-revalidate");

header("Pragma:no-cache");

header("Expires:0");

?>

重点在no-store,它是针对标准浏览器的设置。

no-cache是针对IE浏览器。

详细说明请参照原作者:http://blog.sina.com.cn/s/blog_6ad624380101847x.html