zishu's blog

zishu's blog

一个热爱生活的博主。https://zishu.me

Some thoughts on the certificate error of cdn.jsdelivr.net

Recording a significant event. On December 20, 2021, cdn.jsdelivr.net's domestic IP completely collapsed, stating that there was a certificate error, and all resources accelerated using cdn.jsdelivr.net returned a 404 error.

I also saw this news on my friends' moments, and when I went online, it was indeed showing everything as missing.

It didn't affect foreign resources, so this was a problem that only occurred in China. The jsd official website was still accessible, so it was probably a misconfiguration of the CDN and should be fixed soon.

Then, I started to think about whether it is really reliable to host some file resources on more reliable websites, including using Github Pages + Vercel before, which also had certificate errors for a period of time. The hosted website was down for two days, and then the official changed to a new IP. Although there were no major issues, there were still intermittent connection errors 404.

So it made me more determined to use my own server. But before that, some of my other resources, including JS files and some images, were hosted in a Github repository. Then I used cdn.jsdelivr.net for CDN acceleration, and I always trusted it.

But with a series of recent events, it's not just once or twice. I think it's safer to keep the data in my own hands. In the future, I will consider exporting the files, images, and data stored on major platforms, making multiple backups to prevent incidents like today from happening.

Previously, my images were uploaded to Github and accelerated using jsdelivr. Now I have switched them to my own server. I no longer use any CDN acceleration. The speed of my own server is sufficient, and there are usually not many visitors, mostly just me. It completely meets my personal needs.

But the previous images are still returning a 404 error. They will be gradually moved to another location, and future files will definitely not be accelerated using jsdelivr.

After finishing writing, I will test whether jsdelivr has been fixed. Very well, half a day has passed, and there is no sign of it being fixed.

Finally, I sigh and say, data is really fragile and important!

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.