时间: 2020-10-12|tag:45次围观|0 条评论

PHP不缓存数据头

PHP不缓存数据头

  1. function nocache_headers() {   
  2.     // why are these @-silenced when other header calls aren't?   
  3.     @header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' );   
  4.     @header( 'Last-Modified: ' . gmdate'D, d M Y H:i:s' ) . ' GMT' );   
  5.     @header( 'Cache-Control: no-cache, must-revalidate, max-age=0' );   
  6.     @header( 'Pragma: no-cache' );   

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《PHP不缓存数据头 – php函数
   

还没有人抢沙发呢~