Skip to content
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

部分API中依赖CDN域名识别的问题 #296

Closed
tayqassqan opened this issue Sep 29, 2018 · 4 comments
Closed

部分API中依赖CDN域名识别的问题 #296

tayqassqan opened this issue Sep 29, 2018 · 4 comments

Comments

@tayqassqan
Copy link
Contributor

要解决什么问题
MIP被其他CDN Cache使用时候(神马CDN),当前部分API:isCache、getOriginUrl。

描述一下你理想中的解决方案
CDN域名识别在核心代码中统一维护

@zidanDirk
Copy link

iframe-shell的loader.js中 mipCacheUrl 目前是 '//mipcache.bdstatic.com/c/',后期可能需要统一修改一下

@tayqassqan
Copy link
Contributor Author

iframe-shell的loader.js中 mipCacheUrl 目前是 '//mipcache.bdstatic.com/c/',后期可能需要统一修改一下

对的,iframe-shell的project我也加一下issue

@PengXing
Copy link
Contributor

PengXing commented Oct 8, 2018

神马的 CDN Cache 的规则是怎样的?让神马的同学提 PR 解决吧 @hacke2

@wqllpw
Copy link

wqllpw commented Oct 10, 2018

https://github.com/mipengine/mip2/blob/dev/packages/mip/src/mip1-polyfill/index.js#L23
包含依赖的外部代码,是baidu或者mipcdn域名,可能需要通过编译来替换解决

@PengXing PengXing added this to 需求池 in mip2核心代码需求池 Jan 7, 2019
@PengXing PengXing moved this from 需求池 to 开发中 in mip2核心代码需求池 Jan 9, 2019
@gaoshan003 gaoshan003 moved this from 开发中 to 开发完成,待测试 in mip2核心代码需求池 Apr 16, 2019
@gaoshan003 gaoshan003 removed this from 开发完成,待测试 in mip2核心代码需求池 Apr 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants