duanhan8757 2014-12-07 02:52
浏览 67
已采纳

设置我网站上其他服务器加载的元素的到期日期

I am trying to set expiration time of contents of my website so to increase website performance and have a good page speed insight. I am able to set expiration time for elements that resides on my server but some of the elements which are loaded from other servers (CDN, social networking sites etc.) have "expiration not specified". Following is an example:

http://platform.twitter.com/…c4c981cd3f8f8dfb6b0ab93d6a9e.default.css (expiration not specified)

due to these elements, PageSpeed insight of google developer shows an error to fix "Leverage browser caching" Below is the path for PageSpeed insight for reference:

https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.wiwigo.com%2Fblog

how can I set the expiration for such elements?

  • 写回答

1条回答 默认 最新

  • duan7772 2014-12-07 02:57
    关注

    There's nothing you can do about those assets. In some situations, like a "Tweet" button, you may be able to replace their JavaScript-based one with a static image and a link, but for the more dynamic plugins like a Facebook "Like" button, you won't be able to adjust PageSpeed's recommendations for third-party items.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题