Apache Module Mod_file_cache
Description |
Provides file descriptor caching support to improve Apache performance |
State |
Experiment (X) |
Module name |
File_cache_module |
source files |
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);
?>
Server configuration:
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>
Please refer to the following page for details:
Http://www.tblog.com.cn/manual/apache2.2/mod/mod_file_cache.html