如何从Firebase cdn获取最新的Firebase和Firepad版本?

时间:2015-09-12 21:54:54

标签: firebase firepad

firebase CDN似乎没有API或"最新的"标签。建议是:

<script src="https://cdn.firebase.com/js/client/2.2.9/firebase.js"></script>

快速谷歌显示不同的网站有很多不同的版本加载。我知道当我被迫要求特定版本时,我忘了更新。

问题是如何根据浏览器请求推断firebase.js和firepad。(js | css)的版本?

一些例子......

enter image description here

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:1)

In general we recommend just picking the latest version and using it. We don't provide a "latest" version that you can include. This insulates you if we ever accidentally introduce a bug or change a behavior that you rely on.

Then if/when you want to upgrade, you can do so and make sure everything still works before releasing it to your users. People tend to do the same thing (pin their app to a specific version) with jQuery and other libraries.