如何缓存外部文件 [英] how to cache external files

查看:432
本文介绍了如何缓存外部文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试了我的网站,对谷歌网页速度。

I tested my website, for Google Page Speed.

我做了缓存在.htaccess优化,但它并没有影响来自Facebook和谷歌+文件

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?

推荐答案

实在是,你可以在这一点上做什么。此外,通过这些外部脚本设置缓存超时设定这么低的目的,以防万一他们需要更新他们。如果他们有一个较长的高速缓存超时,更新将需要更长的时间来传播,因为许多人包括他们在自己的网站。

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.

这篇关于如何缓存外部文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆