龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > php编程 >

5 行 PHP 代码禁用 HTTP 缓存

时间:2014-07-22 14:50来源: 作者: 点击:
分享到:
http://www.paulund.co.uk/disable-http-cache-with-php br /
http://www.paulund.co.uk/disable-http-cache-with-php

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");
精彩图集

赞助商链接