- The full name of CDN is Content Delivery Network. CDN is a content distribution network built on the network. Relying on the edge servers deployed in various places and through the function modules of load balancing, content distribution and scheduling of the central platform, users can obtain the content they need nearby, reduce network congestion and improve user access response speed and hit ratio. The key technologies of CDN mainly include content storage and distribution.
- JsDelivr + Github is a free and easy CDN that is ideal for blogging sites.
- JsDelivr is one of the best public CDN service providers in China, and the first “free CDN service between Mainland China and overseas”. JsDelivr has a very useful feature — it speeds up files in the Github repository. We can build a free, globally accessible map bed.
-
For details on how to create a map bed on Github, visit this blog post I wrote to create it: blog.csdn.net/qq_41684621…
-
The custom domain name set in the figure below is the CND to be accelerated
Set the format as:
cdn.jsdelivr.net/gh/ Username/repository name
Gh: github -
To test if the speed of accessing images is actually faster, upload a random image. Here is a special note: out of the designated directory to upload pictures, you can also use the image on the clipboard to upload directly, before uploading you can set the desired format, after uploading, the link format of the address will be directly copied to the clipboard, so there is no need to go to the album to copy the address.
-
Another caveat: Uploading images to Github must not have the same image name, otherwise the upload will fail.
- After jsdelivr CDN acceleration picture: cdn.jsdelivr.net/gh/xdr630/i…
- Without accelerating image: raw.githubusercontent.com/xdr630/imag…
After the visit, it is found that the speed is still relatively fast, and the speed of uploading is also significantly improved.
- JsDelivr — Open Source CDN can be used not only on Github, but also on NPM and WordPress acceleration. For more information, visit www.jsdelivr.com/