table of Contents
I. Introduction
- CDNStands
Content Delivery Network
, that is内容分发网络
;- CDNIt is built on top of existing network infrastructure
智能虚拟网络
, relying deployed around the edge server, through the center of the platform负载均衡
,内容分发
,调度
and other functional modules;- It allows the user to obtain the desired content nearby,
降低
network congestion,提高
user access响应速度
, and命中率
. The key technology of CDN main内容存储
and分发技术
.- In this paper, jsDelivr + Github CDN build a free personal library.
Good article remember 收藏+ 点赞+ 关注amount! ! !---- Nick.Peng
Second, build a CDN warehouse in Github
-
In the new CDN Github repository, as shown:
-
Copy the address of the warehouse CDN created
-
Clone remote repository to a local
in the local directory, right Git Bash Here, execute the following command:
git clone https://github.com/NickyangPeng/CDN.git
-
Upload resource
to our existing static img and js resources, copied to the CDN directory
under the local git repository directory Right Git Bash Here, execute the following command:git status //查看本地仓库状态 git add . //添加所有文件到暂存区 git commit -m 'First commit' //把文件提交到本地仓库 git push //推送至远程仓库
-
Published CDN resources, as
Three, Github + jsDelivr use
- The static resources on Github CDN warehouse converted to quickly access web site, as follows:
https://cdn.jsdelivr.net/gh/你的用户名/你的仓库名@发布的版本号/文件路径
For example:
https://cdn.jsdelivr.net/gh/NickyangPeng/CDN/img/avatar.jpg
Re: CDN behind if you do not use the version number, the directly refers to the latest resources;