PHP禁止浏览器缓存

来源:互联网 发布:java工程师要学什么 编辑:程序博客网 时间:2024/05/16 23:53
  1. <?php  
  2.     //告诉浏览器返回的数据是XML格式  
  3.     header("Content-Type: text/xml;charset=utf-8");  
  4.     //告诉浏览器不要缓存数据  
  5.     header("Cache-Control: no-cache");  
  6.   
  7.  ?>  
0 0