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

IE缓存函数(PHP)_PHP教程

WBOY
Release: 2016-07-13 10:58:30
Original
896 people have browsed it

/**
@title:IE缓存函数(PHP)
*/
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缓存函数将数据缓存在用户浏览器中。对于不需要及时更新的文件,可以用它加快其显示速度。

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/632023.htmlTechArticle?php /** @title:IE缓存函数(PHP) */ 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