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

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

WBOY
WBOYOriginal
2016-06-13 11:18:37740browse

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

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

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

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


------解决方案--------------------
添加一个头 
echo “”  你看看可以发 
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