因为 Jsdelivr 国内备案无了,所以使用渺软CDN来回源Jsdelivr

Jsdelivr使用

官网:https://www.jsdelivr.com/

GitHub仓库链接转CDN

在线转换地址:https://www.jsdelivr.com/github

Jsdelivr链接:https://cdn.jsdelivr.net/gh/GitHub用户名/仓库名@分支(一般为main)/文件路径

js css 等文件名后添加 min 可以压缩文件,如 xxx.min.js

刷新CDN缓存

  • https://cdn.jsdelivr.net/gh/... 更换为 https://purge.jsdelivr.net/gh/... 刷新,再次访问 https://cdn.jsdelivr.net/gh/... 就可以看见刷新后的文件了
  • 成功返回
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    {
    "id": "dRZnfzmLXGb78nsa",
    "status": "finished",
    "timestamp": "2024-02-05T17:12:03.738Z",
    "paths": {
    "/gh/GitHub用户名/仓库名@分支(一般为main)/文件路径": {
    "throttled": false,
    "providers": {
    "CF": true,
    "FY": true
    }
    }
    }
    }

渺软CDN

官网:https://cdn.onmicrosoft.cn/

使用方法

  • https://cdn.jsdelivr.net/gh/... 更换为 https://jsd.onmicrosoft.cn/gh/...

刷新CDN缓存

  1. 爱发电 赞助 @Zkeq 获取刷新 token
  2. 在官网的 Pure Cache 处刷新即可