CDN Platform Jsdelivr Reports an Error, Introduction to Alternative Solutions

Introduction

Many friends who are in contact with open source may know jsdelivr, and often use this cdn service, which is a very fast and free cdn service. All public javascript npm packages and github repositories can use jsdelivr as a static resource server, and it is free, Super fast!

The address is https://www.jsdelivr.com/

Accident

But in May 2021, its interface became like this,

That’s right, jsdelivr is down. According to feedback from netizens, there are problems with all websites that use jsdelivr services.

The funny thing is that bootcdn also hangs up because it uses jsdelivr on the home page.

The style of the echarts homepage has been messed up

The popular online tool platform lwebapp.com Because the code highlighting uses the cdn of jsdelivr, there are some problems with the code highlighting, but it has little effect.

jsdelivr has an official feedback repository on github, and now issues are all about cdn reporting errors.

According to feedback from netizens, the problem mainly occurred in mainland China, and some nodes had problems. Netizens actively reported errors.

SSL_ERROR_BAD_CERT_DOMAIN in Mainland China

`

Your connection isn't private
Attackers might be trying to steal your information from cdn.jsdelivr.net (for example, passwords, messages, or credit cards).
NET::ERR_CERT_COMMON_NAME_INVALID
Subject: default.chinanetcenter.com

Issuer: DigiCert Basic RSA CN CA G2

Expires on: Nov 15, 2022

Current date: Dec 20, 2021

`

NET::ERR_CERT_COMMON_NAME_INVALID

`

Solution

Replace with subdomain

Temporarily found two subdomains that can be used:

  • fastly.jsdelivr.net
  • gcore.jsdelivr.net

You can try it yourself and see which one is faster

Change the cdn manufacturer

If you are in a hurry, change a CDN manufacturer
Some netizens suggested to use cdnjs or unpkg, or bootcdn

For example: https://cdn.jsdelivr.net/npm/ is replaced by https://unpkg.com/ for emergency, only npm part

Alternative cdn services:

Build your own cdn

Generally speaking, cdn is relatively fast. If your server traffic is OK, you can also deploy static resources on your own server, so that the service is relatively stable, and you don’t need to worry about service problems, but the cost may be a little high. Here we still recommend the Alibaba Cloud server.

purchase address

Alibaba Cloud

Waiting for jsdelivr to fix

If you are not in a hurry, wait for jsdelivr. The official issue says that it is already in the process of repairing. After all, the number of users is so large that the official is already anxious.

VPN Tool

If you are not a website author, but a website user, you can directly set up a ladder and act as an agent to other countries. In fact, you can access it completely, there will be no link failure, and the speed is very stable.

For detailed recommendations, please refer to another blog post

Best VPN Recommendation

Reference

Leave a Reply