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

php强制浏览器不缓存内容

WBOY
Release: 2016-06-20 12:58:28
Original
905 people have browsed it

代码如下:

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template