【发布时间】:2011-07-22 17:50:02
【问题描述】:
我从 Google Speed 测试中得到了这个错误:
以下可缓存资源的新鲜度生命周期较短。为以下资源指定至少一周后的到期时间:
http://localhost/english/favicon.ico (expiration not specified)
http://localhost/english/images/bg_center.png (expiration not specified)
http://localhost/english/images/bg_top.jpeg (expiration not specified)
http://localhost/english/images/footer_bg2.png (expiration not specified)
http://localhost/english/images/m_facebook.png (expiration not specified)
http://localhost/english/images/m_rss.png (expiration not specified)
http://localhost/english/images/top_bg.png (expiration not specified)
http://localhost/english/javascript/gram.js (expiration not specified)
http://localhost/english/javascript/top_start.js (expiration not specified)
http://localhost/english/jquery.js (expiration not specified)
http://localhost/english/style/gram.css (expiration not specified)
http://localhost/english/style/style.css (expiration not specified)
我应该在我的 htaccess 文件中做些什么吗?
【问题讨论】:
标签: php .htaccess caching browser-cache