Yslow 无法识别我的 telerik CDN 主机名
有人在让 YSlow 使用 MS 或 Telerik 静态内容正确评分 CDN 时遇到问题吗?
对我来说,它实际上说它正在使用我的主机名首选项,但随后将它们全部列为不在 CDN 上的组件。这就是我得到的:-
使用内容交付网络 (CDN) 的 F 级
有 61 个静态组件不在 CDN 上。
根据您的喜好使用这些 CDN 主机名: aspnet-scripts.telerikstatic.com 、 ajax.microsoft.com 、 aspnet-skins.telerikstatic.com 、 http://aspnet-skins.telerikstatic.com, telerikstatic.com
http://aspnet-skins.telerikstatic.com/ajaxz/ 2010.3.1109/Menu.css
http://aspnet-skins.telerikstatic。 com/ajaxz/2010.3.1109/Black/Menu.Black.css
http://aspnet-skins.telerikstatic.com/ajaxz/ 2010.3.1109/Ajax.css
http://aspnet-skins.telerikstatic。 com/ajaxz/2010.3.1109/Sitefinity/Ajax.Sitefinity.css
http://aspnet-skins.telerikstatic.com/ajaxz/ 2010.3.1109/ComboBox.css
http://ajax.microsoft.com/ajax/4.0/1/ MicrosoftAjaxWebForms.js
http://aspnet-scripts.telerikstatic.com/ ajaxz/2010.3.1109/Common/Core.js
http://aspnet-scripts.telerikstatic.com/ ajaxz/2010.3.1109/Ajax/Ajax.js
等等...
我试图用 CDN 名称限定来涵盖角度,但 Yslow 一直自相矛盾,并且实际上不接受主机名的任何组合 - 除非我很愚蠢并且在这里遗漏了一些明显的东西!
编辑 抱歉,我没有在 OP 中明确表示我已遵循 Yslow 常见问题解答 - “将我的 CDN 主机名添加到 YSlow 的规则 2”建议。 http://developer.yahoo.com/yslow/faq.html#faq_cdn
Anyone had a problem getting YSlow to score CDN properly with MS or Telerik static content?
For me it actually says it's using my hostname preferences but then lists them all as components not on CDN. This is what I get:-
Grade F on Use a Content Delivery Network (CDN)
There are 61 static components that are not on CDN.
Using these CDN hostnames from your preferences: aspnet-scripts.telerikstatic.com , ajax.microsoft.com , aspnet-skins.telerikstatic.com , http://aspnet-skins.telerikstatic.com, telerikstatic.com
http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Menu.css
http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Black/Menu.Black.css
http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Ajax.css
http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/Sitefinity/Ajax.Sitefinity.css
http://aspnet-skins.telerikstatic.com/ajaxz/2010.3.1109/ComboBox.css
http://ajax.microsoft.com/ajax/4.0/1/MicrosoftAjaxWebForms.js
http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Common/Core.js
http://aspnet-scripts.telerikstatic.com/ajaxz/2010.3.1109/Ajax/Ajax.js
etc...
I've tried to cover the angles withe the CDN name qualification but Yslow keeps contradicting itself and doesn't actually accept any combination of the hostnames - unless of course I'm being stupid and missing something obvious here!
edit
Sorry I didn't make it clear in OP that I've followed the Yslow FAQ - "Add my CDN hostname to YSlow for Rule 2" advice. http://developer.yahoo.com/yslow/faq.html#faq_cdn
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
YSlow 常见问题解答中对此进行了介绍 - 您可以将自定义主机名添加到 CDN 列表中。请参阅“如何将我的 CDN 主机名添加到规则 2 的 YSlow?”了解更多细节。
This is covered in the YSlow FAQ - you can add custom hostnames to the list of CDNs. See "How do I add my CDN hostname to YSlow for Rule 2?" for more details.
最后我删除并重新安装了 Firefox 3.6.13、firebug 1.6 和 YSlow 2.1,现在它可以工作了 - 非常奇怪。
我之前可能以错误的顺序安装了 Yslow 和 firebug 插件 - 也许这导致了问题。
In the end I removed and reinstalled Firefox 3.6.13, firebug 1.6 and YSlow 2.1 and now it works - very odd.
I may have installed Yslow and firebug addins in the wrong order before - perhaps that caused the problem.