-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #69
Comments
Nginx 301? |
重定向还是先进到服务器,再进入CDN,失去了CDN第一跳最快的优势 |
如果友不友好指的是CORS和域名, 那么可以直接设置DNS CNAME指向CDN。 然后设置CORS header。 参见:
|
我也遇到过这个问题,提供个解决方案: 1,搭建独立静态资源服务器,供CDN回源: 2,前端静态资源直接访问CDN: 以上需要注意的: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
elemeFE的同学,您好,我这里有一个问题想请教:
整站静态化后,整个文件包放入CDN,链接该如何配置?如果过nginx,那么相当于进一遍服务器,再跳入CDN,就等于在服务器绕了一圈,没有达到最优速度;如果不配置,那链接就不友好;求赐教,万分感谢了!
The text was updated successfully, but these errors were encountered: