PHP does not cache data headers_PHP tutorial

WBOY
Release: 2016-07-15 13:22:19
Original
692 people have browsed it

PHP does not cache headers

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/447000.htmlTechArticlePHP does not cache headers function nocache_headers() { // why are these @-silenced when other header calls arent? @header( Expires: Wed, 11 Jan 1984 05:00:00 GMT ); @header( Last-Modifi...
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