如何替代jsdelivr?
我有项目引用jsdelivr的资源文件,发现被Q了换成panbaidu.cn,不尽人意
有没有替代品,或者说,如何自建? jsDelivr同时买了多家CDN,一家不行就换
testingcf.jsdelivr.netfastly.jsdelivr.netoriginfastly.jsdelivr.netgcore.jsdelivr.netquantil.jsdelivr.net
另外以前某位MJJ搞过利用Service Worker做CDN线路优选的项目,可以结合国内各大开源库使用。(百度、360、字节都有建unpkg库)
https://hostloc.com/thread-958136-1-1.html 被墙了吗 卧槽 没有被墙,只是部分地区无法访问吧 放大厂图床 感谢! 本地化 自建吧 也没几个文件 sw前端竞速选择,哪个更快就哪个:lol
let cdn = { "gh": { jsdelivr: { "url": "https://cdn.jsdelivr.net/gh" }, pigax_jsd: { "url": "https://u.pigax.cn/gh" }, pigax_chenyfan_jsd: { "url": "https://cdn-jsd.pigax.cn/gh" }, tianli: { "url": "https://cdn1.tianli0.top/gh" }, //白** //cdn.cnortles.top jsd.hin.cool cnortles: { "url": "https://cdn.cnortles.top/gh" }, hin_cool: { "url": "https://jsd.hin.cool/gh" } }, "combine": { jsdelivr: { "url": "https://cdn.jsdelivr.net/combine" }, pigax_jsd: { "url": "https://u.pigax.cn/combine" }, pigax_chenyfan_jsd: { "url": "https://cdn-jsd.pigax.cn/combine" }, tianli: { "url": "https://cdn1.tianli0.top/combine" }, //cdn.cnortles.top jsd.hin.cool cnortles: { "url": "https://cdn.cnortles.top/combine" }, hin_cool: { "url": "https://jsd.hin.cool/combine" } }, "npm": { eleme: { "url": "https://npm.elemecdn.com" }, jsdelivr: { "url": "https://cdn.jsdelivr.net/npm" }, zhimg: { "url": "https://unpkg.zhimg.com" }, unpkg: { "url": "https://unpkg.com" }, bdstatic: { "url": "https://code.bdstatic.com/npm" }, pigax_jsd: { "url": "https://u.pigax.cn/npm" }, pigax_unpkg: { "url": "https://unpkg.pigax.cn/" }, pigax_chenyfan_jsd: { "url": "https://cdn-jsd.pigax.cn/npm" }, tianli: { "url": "https://cdn1.tianli0.top/npm" }, //cdn.cnortles.top jsd.hin.cool cnortles: { "url": "https://cdn.cnortles.top/npm" }, hin_cool: { "url": "https://jsd.hin.cool/npm" } }} 自建 或者反代
页:
[1]