how to cache external files

血红的双手。 提交于 2019-12-02 09:43:45

问题


I tested my website, for Google Page Speed.

I did the cache optimizing in .htaccess, but it doesn't affect files that are from Facebook and Google+

Leverage browser caching

http://connect.facebook.net/fr_FR/all.js (20 minutes)

https://apis.google.com/js/plusone.js (30 minutes)

https://oauth.googleusercontent.com/…e:rpc:shindig.random:shindig.sha1.js?c=2 (60 minutes)

What can I do for solving this?


回答1:


There is really nothing you can do at this point. Besides, the cache timeouts set by those external scripts are set so low on purpose, just in case they need to update them. If they had a longer cache timeout, updates would take longer to propagate since many people include them in their websites.



来源:https://stackoverflow.com/questions/21076339/how-to-cache-external-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!