【发布时间】:2015-05-27 22:25:24
【问题描述】:
我在我的网站https://he.mypen.net 上使用 ec2 和 s3。将我的 apache 配置更改为:
#Set caching on image files for 11 months
<filesMatch "\.(ico|gif|jpg|jpeg|png|css|js|woff|eot|TrueType|svg)$">
ExpiresActive On
ExpiresDefault "access plus 11 month"
Header set Cache-Control "max-age=17280000, public"
</filesMatch>
缓存适用于 woff、css、js、png 文件,但不适用于我的 s3 jpeg 知道为什么吗?
【问题讨论】:
标签: apache caching amazon-ec2 amazon-s3 browser-cache