Home > Backend Development > PHP Tutorial > IE缓存函数(PHP)_PHP

IE缓存函数(PHP)_PHP

WBOY
Release: 2016-06-01 12:30:20
Original
810 people have browsed it

/**
@title:IE缓存函数(PHP)
@author:axgle
*/
iecache();
echo date("Y-m-d H:i:s");

function iecache() {
        $_SERVER['HTTP_IF_NONE_MATCH']?header('Etag:1',true,304):header('Etag:1');
}
?>

IE缓存函数将数据缓存在用户浏览器中。对于不需要及时更新的文件,可以用它加快其显示速度。

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