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

有一个疑问,我想将静态资源目录static放在一台专门做cdn的服务器,不知道怎么配置 #55

Open
panyonghuan opened this issue Aug 9, 2016 · 3 comments

Comments

@panyonghuan
Copy link

有一个疑问,我想将静态资源目录static放在一台专门做cdn的服务器,不知道怎么配置了,如果
<?php $_map = json_decode('__RESOURCE_MAP__', true); ?>
将这个表release到一个php里面,里面对这个json处理,那是可行,想知道官方的方法里面有什么神器式的方法

@panyonghuan
Copy link
Author

panyonghuan commented Aug 9, 2016

搞好了,刚刚看到文档有这个牛逼的命令,我就知道百度这样的大公司1000000000000%会考虑到这个问题的,因为你们的大部分网站都是这样的,刚才就是没有看到文档

fis.match('/static/**', { domain: 'http://127.0.0.1' });

@panyonghuan
Copy link
Author

感谢百度提供那么好的东西,真好,感谢

@hanyitim
Copy link

刚好我也有这个问题 哈哈 学到东西了···谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants