PHP不緩存數(shù)據(jù)頭
來源:程序員人生 發(fā)布時間:2014-05-02 19:54:27 閱讀次數(shù):3488次
PHP不緩存數(shù)據(jù)頭 - function nocache_headers() {
-
- @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' );
- }
生活不易,碼農(nóng)辛苦
如果您覺得本網(wǎng)站對您的學(xué)習(xí)有所幫助,可以手機掃描二維碼進行捐贈