Apache Web服务器mod_expires(缓存模块)配置

官方说明:Generation of Expires and Cache-Control HTTP headers according to user-specified criteria
检查是否安装模块:


安装mod_expires模块:

未配置mod_expires

配置mod_expires参数:
ExpiresDefault "base[plus num type] [num type] ..."
ExpiresByType type/encoding "base[plus num type] [num type] ..."

重新启动apache

查看增加mod_expires:

申明:本文由BYRD原创(基于Centos6.4 X64、PHP5.5.11、APACHE2.4.9、MYSQL5.6.16),未经许可禁止转载!
参考:http://httpd.apache.org/docs/2.4/zh-cn/mod/mod_expires.html
参考:http://note.t4x.org/system/configure-httpd-MySQL-php/
参考:http://www.hbcms.com/cms/9d/1322.html 文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/environment/apache-mod-expires/

申明:除非注明Byrd's Blog内容均为原创,未经许可禁止转载!详情请阅读版权申明!

 
Byrd
  • by Published onMay 14, 2014
  • 原文链接:https://note.t4x.org/environment/apache-mod-expires/
Comments  2  Visitor  0
匿名

Comment

Anonymous

Slide puzzle verification.