php 5 行 PHP 代码禁用 HTTP 缓存
5 行 PHP 代码禁用 HTTP 缓存 [代码片段(7行)]
header("Content-Type: application/json");
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
//该片段来自于http://outofmemory.cn
精彩图集
精彩文章






