请教怎么强制刷新php页面,不要让它用cache的data

WBOY
Release: 2016-06-13 11:18:37
Original
739 people have browsed it

请问如何强制刷新php页面,不要让它用cache的data?
我有试过下面的代码,好像是不管用

header("Expires:-1");
header("Cache-Control:no-cache");
header("Pragma:no-cache");
?>

在页面上按f5来刷倒是可以. 但我也不知道怎么去实现它.  

请大家指点一下, 谢谢了.


------解决方案--------------------
添加一个头 
echo “”  你看看可以发 
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!