如何将Expires标题添加到Google,Twitter和Facebook js文件中?

时间:2012-08-16 18:48:07

标签: .htaccess

我执行了一个yslow测试,并想知道有一个过期标题的f级,但我设置了一个过期的标题,后来我知道js文件不在我的服务器,如何将expire标题添加到外部js来自twitter和facebook的文件,我的apache版本是2,

http://www.google-analytics.com/ga.js
https://apis.google.com/js/plusone.js
http://search.twitter.com/search.json?q=from:rgvzoomin+OR+from:Samanthaprabhu2+OR+from:NameisNani+OR+from:purijagan+OR+from:harish2you+OR+from:charmmeofficial+OR+from:nandinireddy4u+OR+from:sneha_ullal+OR+from:trishtrashers+OR+from:LakshmiManchu+OR+from:shrutihaasan+OR+from:RanaDaggubati+OR+from:geneliad+OR+from:urstruelybunny+OR+from:urstrulyMahesh+OR+from:Ileana_Dcruz+OR+from:allarinaresh+OR+from:ramsayz+OR+from:prakashraaj+OR+from:Actor_Siddharth+OR+from:richyricha+OR+from:iamnagarjuna+OR+from:ssrajamouli&callback=TweetTick&rpp=5
http://platform.twitter.com/widgets.js
http://gobnf.org/i/wm/buttons/wm_super.gif
http://cdn.api.twitter.com/1/urls/count.json?url=http%3A%2F%2Fwww.tolly2day.com&callback=twttr.receiveCount

1 个答案:

答案 0 :(得分:2)

您无法控制使用这些文件发送的标头,因为它们不是从您的服务器发送的。您只能控制您在本地托管的文件的标题。