程序员人生 网站导航

PHP不缓存数据头

栏目:php教程时间:2014-05-02 19:54:27
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' );   
------分隔线----------------------------
------分隔线----------------------------

最新技术推荐