-
-
Notifications
You must be signed in to change notification settings - Fork 877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在特定情况无法从CDN获取文件 #1276
Comments
所有资源文件都在 dist 目录下。前端一般都是这样放置的,看一下是不是资源网站的定向问题。 |
不行就用自己服务器上的。cdn.staticfile 这个没有研究过 |
我已经向cdnjs提交了修复,但是由于cdnjs的bug无法合并,详见 cdnjs/packages#1266 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
编辑模式
ALL
描述问题
/js/i18n/zh_CN.js 等文件的获取会自动在url头加上一个
/dist/
, 但如果我使用的是 CDNJS 类的 CDN , 他们并不包含这个/dist/
, 而程序自动的在前方添加了这个前缀, 导致文件无法获取期待的结果
去除强制地在 options.cdn 后加入
/dist/
, 将选择权留给用户版本信息
其他信息
例子:
将 options.cdn 设置为
https://cdn.staticfile.org/vditor/3.8.17/
程序自动地访问了
https://cdn.staticfile.org/vditor/3.8.17/dist/js/i18n/zh_CN.js
=> 404而正确的链接为
https://cdn.staticfile.org/vditor/3.8.17/js/i18n/zh_CN.js
The text was updated successfully, but these errors were encountered: