Recording a significant event that occurred on December 20, 2021. cdn.jsdelivr.net's domestic IP addresses completely collapsed due to a certificate error, resulting in all resources accelerated by cdn.jsdelivr.net returning a 404 error.
I also saw this news on my friends' circle, and when I went online, all the resources were indeed missing.
It only affected domestic 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 and 404 errors.
So it reinforced my decision to use my own server. But before that, some of my other resources, including JS files and some images, were hosted in Github repositories. And I used cdn.jsdelivr.net for CDN acceleration, and I always trusted it.
But with a series of recent events, not just once or twice, I feel that it is 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. It fully meets my personal needs.
However, the previous images are still returning a 404 error. I will gradually move them to another location, and future files will definitely not be accelerated by jsdelivr.
After finishing writing, I will test whether jsdelivr has been fixed. Well, it's been half a day and there is no sign of it being fixed yet.
In conclusion, data is truly fragile and important!