Home > php教程 > php手册 > php缓存mod_file_cache 模块的设置

php缓存mod_file_cache 模块的设置

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-21 08:57:20
Original
1463 people have browsed it

Apache模块 mod_file_cache

说明 提供文件描述符缓存支持,从而提高Apache性能
状态 实验(X)
模块名 file_cache_module
源文件 mod_file_cache.c

    header( "Expires:" . gmdate("D, d M Y H:i:s", time() + 3600 * 24) . " GMT");
    header("Content-Type:image/jpeg;");
    header("Connection:close;");
    $im = ImageCreateFromJpeg('img/ove.jpg');
    ImageJPEG($im);
?>

服务器配置:

FileETag none<br><ifmodule expires_module><br>ExpiresActive On<br>ExpiresDefault A0<br>ExpiresByType image/x-icon A2592000<br>ExpiresByType application/x-javascript A259200<br>ExpiresByType text/css A259200<br>ExpiresByType image/gif A259200<br>ExpiresByType image/png A259200<br>ExpiresByType image/jpeg A259200<br>ExpiresByType text/plain A604800<br>ExpiresByType application/x-shockwave-flash A604800<br>ExpiresByType video/x-flv A604800<br>ExpiresByType application/pdf A604800<br>ExpiresByType text/html A0<br></ifmodule>

详细请参考以下页面:

http://www.tblog.com.cn/manual/apache2.2/mod/mod_file_cache.html



Related labels:
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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template