个人笔记 html 08 浏览器返回页面时刷新

来源:互联网 发布:错别字检测软件 编辑:程序博客网 时间:2024/06/11 09:59

asp禁用缓存的办法

<%Response.Buffer = True Response.ExpiresAbsolute = Now() - 1 Response.Expires = 0 Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "No-Cache"%>

php禁用缓存的办法

<?php 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'); ?>


0 0