Comments (3)
现在用 NPM 命令检测文件是否发布过,应该更稳定一些:https://github.com/EtherDream/freecdn/blob/master/examples/free-host/npm-upload.sh
elemecdn 没加,第三方 CDN 往 list 里加一行就可以:
list="$list
$hash https://unpkg.com/$dst
$hash https://cdn.jsdelivr.net/npm/$dst
$hash https://npm.elemecdn.com/$dst
"
from freecdn.
上传脚本目前是通过访问 unpkg.com 检测文件是否已上传(根据 HEAD 请求是否返回 200 检测文件存在)。可能 unpkg.com 已回源成功,其他 jsdelivr 或 elemecdn 还没同步,出现 404。我打算改进下,直接用 npm 命令检测这个版本是否已发布,这样更准确些。
如果资源被 sw 拦截到,但仍然访问原始 url 而不是备用 url,可能是原始站点的权重更高一些,可以试试权重配置。
from freecdn.
改天再试试, 先close issue了.
from freecdn.
Related Issues (18)
- 关于使用方式与教程? HOT 2
- 执行异常:Cannot read property 'subtle' of undefined HOT 1
- 清单备用url优化 HOT 7
- bundle新功能pack资源包格式和原理 HOT 11
- 支持更高版本的node.js
- 希望可以增加保留查询字符串选项
- 在 freecdn-manifest.txt 使用真实url HOT 6
- 似乎不支持火狐浏览器 HOT 1
- 透明模式是否支持http2服务器推送 HOT 1
- 是否有考虑过添加到构建过程中的方案? HOT 5
- 图床支持不太友好 HOT 2
- 用户访问过启用了freecdn的网站后,能否在服务端主动停用 HOT 3
- 对于没有后缀名的 Url 支持? HOT 6
- 【需求建议】针对特殊图床的优化
- 关于css内引用google的问题. HOT 1
- 优先从本体链接加载? HOT 3
- 提些建议 HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freecdn.