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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
