[英]Understanding CDN's
I've been downloading jquery with: 我一直在用以下方法下载jquery:
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
and for some reason, the link went bad. 由于某种原因,链接变坏了。 Not a problem as I changed the link to use Microsoft's hosted CDN.
没问题,因为我将链接更改为使用Microsoft的托管CDN。 I'm wondering though if I should just download the files so to prevent this problem happening again in the future.
我想知道是否应该只下载文件,以防止将来再次发生此问题。 Is there any reason not to?
有没有理由吗?
Ultimately if you download the files to your own server then you will not experience the same issue again. 最终,如果将文件下载到自己的服务器,则不会再遇到相同的问题。 But there are other considerations:
但是还有其他注意事项:
Plus points for CDNs CDN的加分
Negative points 负点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.