范例二: 欲让用户每次都能得到最新的资料,而不是 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");php手册里的参考

解决方案 »

  1.   

    注意: 传统的标头一定包含下面三种标头之一,并只能出现一次。Content-Type: xxxx/yyyy
    Location: xxxx:yyyy/zzzz
    Status: nnn xxxxxx
    而手册里面的
    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");Expires,Last_Modified,Cache_Control,Pragam,
    不是里面的
    Content-Type: 
    Location: 
    Status: nnn 
    三个关键字!