html5中文学习网

您的位置: 首页 > 网络编程 > PHP编程 » 正文

php缓存mod_file_cache 模块的设置_PHP教程_编程技术

[ ] 已经帮助:人解决问题

Apache模块 mod_file_cache

说明提供文件描述符缓存支持,从而提高Apache性能
状态实验(X)
模块名file_cache_module
源文件mod_file_cache.c
<?php
    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
<IfModule expires_module>
ExpiresActive On
ExpiresDefault A0
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A259200
ExpiresByType text/css A259200
ExpiresByType image/gif A259200
ExpiresByType image/png A259200
ExpiresByType image/jpeg A259200
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A0
</IfModule>

详细请参考以下页面:

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

EceHTML5中文学习网 - HTML5先行者学习网
EceHTML5中文学习网 - HTML5先行者学习网
(责任编辑:)
推荐书籍
推荐资讯
关于HTML5先行者 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 人才招聘 - 帮助