【发布时间】:2017-06-07 07:54:15
【问题描述】:
目前在网络服务器上运行的 mod_pagespeed 版本为 1.9.32.14-r0
纯静态内容(不缓存页面速度)以第一个 max-age=300 提供,然后向下计数到 max-age=0 并以 max-age=300 重新开始
当 mod_pagespeed 被禁用时,mod_expires/mod_headers 会持续显示 .htaccess 配置的 max-age=2692000
我不明白为什么
.htaccess:
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpeg "access plus 2692000 seconds"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\\.jpg$">
Header set Cache-Control "max-age=2692000, public"
</FilesMatch>
</IfModule>
【问题讨论】:
标签: apache cache-control mod-pagespeed mod-expires mod-headers