Home  >  Article  >  Backend Development  >  php强制浏览器不缓存内容

php强制浏览器不缓存内容

WBOY
WBOYOriginal
2016-06-20 12:58:28880browse

代码如下:

<?php    header ("Cache-Control: no-cache, must-revalidate");      header ("Pragma: no-cache");   ?> 

说明:对于动态页面,缓存的代码必须放在任何HTML标签输出之前,否则将会出错。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn