php添加http头禁止浏览器缓存
php添加http头禁止浏览器缓存 如下代码,通过添加http头禁止缓存```{php}header(#39;Expires: 0#39;);header(#39;Last-Modified: #39;. gmdate(#39;D, d M Y H:i:s#39;) . #39; GMT#39;);header(#39;Cache-Control: no-store, no-cahe
如下代码,通过添加http头禁止缓存
header('Expires: 0');
header('Last-Modified: '. gmdate('D, d M Y H:i:s') . ' GMT');
header('Cache-Control: no-store, no-cahe, must-revalidate');
//ie专用
header('Cache-Control: post-chedk=0, pre-check=0', false);
//for HTTP/1.0
header('Pragma: no-cache');
- 上一篇:php 织梦CMS图片处理加水印,制作缩略图
- 下一篇:php读写文件代码
精彩图集
精彩文章






