【发布时间】:2018-06-17 21:57:13
【问题描述】:
我使用这个谷歌工具来分析我的网站。 https://developers.google.com/speed/pagespeed/insights/
这个结果告诉我以下内容:
**Leverage browser caching**
Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network.
Leverage browser caching for the following cacheable resources:
https://www.googletagmanager.com/gtm.js?id=GTM-XXw3 (15 minutes)
https://connect.facebook.net/en_US/fbevents.js (20 minutes)
https://connect.facebook.net/…onfig/1510218389239357?v=2.8.17&r=stable (20 minutes)
https://connect.facebook.net/…config/253358141816050?v=2.8.17&r=stable (20 minutes)
https://bat.bing.com/bat.js (30 minutes)
https://www.google-analytics.com/plugins/ua/linkid.js (60 minutes)
https://www.googleadservices.com/pagead/conversion_async.js (60 minutes)
https://www.google-analytics.com/analytics.js (2 hours)
我正在使用 Wordpress。我在哪里/如何设置到期时间?
【问题讨论】:
-
不要尝试你不能......这些是外部工具,它不在你的网站上......它们与 FB 代码和谷歌 TM 和分析有关,你无能为力
标签: css wordpress browser-cache cache-control