这个可以在服务器设置立即过期。或者像csdn一样在后边加个随机数来刷新页面。

解决方案 »

  1.   

    欲让使用者每次都能得到最新的资料,而不是 Proxy 或 cache 中的资料,可以使用下列的标头
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
      

  2.   

    同意楼上的
    使用header实现
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    我觉得上面两行就可以了
      

  3.   

    try:
    更改:php.ini
    设置
    session.cache_limiter=nocache