| 说明 | 提供文件描述符缓存支持,从而提高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
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号