.htaccess 使用htaccess设置到期日期(利用浏览器缓存)

.htaccess 使用htaccess设置到期日期(利用浏览器缓存),.htaccess,caching,browser,blogs,server,.htaccess,Caching,Browser,Blogs,Server,我正在尝试改进博客的浏览器缓存,因此我的htaccess中有以下内容: <IfModule mod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year” # Images ExpiresByType

我正在尝试改进博客的浏览器缓存,因此我的htaccess中有以下内容:

<IfModule mod_expires.c>

# Enable expirations
ExpiresActive On

# Default directive
ExpiresDefault "access plus 1 month"

# My favicon
ExpiresByType image/x-icon "access plus 1 year”

# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"

# CSS
ExpiresByType text/css "access 1 day”

# Javascript
ExpiresByType application/javascript "access plus 1 year"

</IfModule>

是,它已启用。不确定为什么某些格式会过期,但其他格式不会过期:/Gtmetrix需要一些时间来反映更新的内容。请检查一次谷歌网页速度关于这个问题。可能重复的
The following cacheable resources have a short freshness lifetime. Specify an expiration at     least one week in the future for the following resources:

http://kaye.at/img/11/11-month-update.jpg (expiration not specified)
http://kaye.at/img/11/archie-and-cousin-caitlin.jpg (expiration not specified)
http://kaye.at/img/11/archie-and-nanny-bailey.jpg (expiration not specified)
http://kaye.at/img/11/archie-and-nanny.jpg (expiration not specified)
http://kaye.at/img/abc/h@2x.png (expiration not specified)
http://kaye.at/img/anchorlogodark.png (expiration not specified)
http://kaye.at/img/confetti.png (expiration not specified)
https://gwc.lphbs.com/0/lpg/msg (expiration not specified)
http://use.typekit.net/eev2aks.js (10 minutes)
http://connect.facebook.net/en_GB/sdk.js (20 minutes)
http://www.google-analytics.com/analytics.js (2 hours)
http://www.google-analytics.com/ga.js (2 hours)
http://helloarchie.blue/themes/tootsweet/css/base.css (1 day)
http://helloarchie.blue/themes/tootsweet/css/layout.css (1 day)
http://helloarchie.blue/themes/tootsweet/css/skeleton-fluid.css (1 day)