PHP Cache MoD

Source: Internet
Author: User
Tags header

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



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.