CDN 镜像站
67已缓存文件
1.42 MB占用空间
5 分钟前最近拉取
4,518待同步队列
计划任务:同步 从未 · 清理 从未 · 磁盘统计 5 分钟前
可用镜像
下面所有地址都已本地化,把页面中原来的 CDN 域名替换成 https://mgcdn.1988idc.cn 即可。
cdnjs
已启用cdnjs.cloudflare.com 公共库(jQuery / Bootstrap / Font Awesome / Chart.js …)
https://mgcdn.1988idc.cn/cdnjs/ajax/libs/jquery/3.7.1/jquery.min.js
jsDelivr · npm
已启用jsDelivr 的 npm 包源(任何发布到 npm 的包都可用)
https://mgcdn.1988idc.cn/npm/vue@3.4.21/dist/vue.global.prod.js
jsDelivr · GitHub
已启用jsDelivr 的 GitHub 仓库源(user/repo@版本/文件)
https://mgcdn.1988idc.cn/gh/jquery/jquery@3.6.0/dist/jquery.min.js
unpkg
已启用unpkg.com npm 包直读源
https://mgcdn.1988idc.cn/unpkg/react@18.2.0/umd/react.production.min.js
esm.sh
已启用esm.sh ESM 模块 CDN(支持 ?bundle / ?target / ?dev 等参数)
https://mgcdn.1988idc.cn/esm/react@18.2.0?target=es2022
Gravatar 头像
已启用Gravatar 头像镜像(支持 s 尺寸 / d 默认头像 / r 分级,自动按格式缓存)
https://mgcdn.1988idc.cn/avatar/205e460b479e2e5b48aec07710c08d50?s=120&d=identicon
Statically CDN
已启用Statically(gh / npm / 图片处理 / 社交卡等)
https://mgcdn.1988idc.cn/statically/gh/jquery/jquery@3.6.0/dist/jquery.min.js
GitHub Raw 直通
已启用raw.githubusercontent.com 直通,按后台 GitHub 镜像规则加速(给无法直连 GitHub 的机器用)
https://mgcdn.1988idc.cn/ghraw/cdnjs/cdnjs/master/ajax/libs/jquery/3.7.1/jquery.min.js
使用方法
| 镜像 | 原地址 | 替换为 | 备注 |
|---|---|---|---|
| cdnjs | https://cdnjs.cloudflare.com/ajax/libs/ |
https://mgcdn.1988idc.cn/cdnjs/ajax/libs/jquery/3.7.1/jquery.min.js |
把 https://cdnjs.cloudflare.com/ajax/libs/… 直接换成 https://mgcdn.1988idc.cn/cdnjs/ajax/libs/…;也支持省略 ajax/libs 前缀。 |
| jsDelivr · npm | https://cdn.jsdelivr.net/npm/ |
https://mgcdn.1988idc.cn/npm/vue@3.4.21/dist/vue.global.prod.js |
把 https://cdn.jsdelivr.net/npm/… 换成 https://mgcdn.1988idc.cn/npm/…;不带版本号表示最新版(短期缓存)。 |
| jsDelivr · GitHub | https://cdn.jsdelivr.net/gh/ |
https://mgcdn.1988idc.cn/gh/jquery/jquery@3.6.0/dist/jquery.min.js |
把 https://cdn.jsdelivr.net/gh/… 换成 https://mgcdn.1988idc.cn/gh/…;如 jsDelivr 不可用会自动回退到 GitHub 镜像(后台可配)。 |
| unpkg | https://unpkg.com/ |
https://mgcdn.1988idc.cn/unpkg/react@18.2.0/umd/react.production.min.js |
把 https://unpkg.com/… 换成 https://mgcdn.1988idc.cn/unpkg/…。 |
| esm.sh | https://esm.sh/ |
https://mgcdn.1988idc.cn/esm/react@18.2.0?target=es2022 |
把 https://esm.sh/… 换成 https://mgcdn.1988idc.cn/esm/…;查询参数会参与缓存键计算。 |
| Gravatar 头像 | https://www.gravatar.com/avatar/ |
https://mgcdn.1988idc.cn/avatar/205e460b479e2e5b48aec07710c08d50?s=120&d=identicon |
把 https://www.gravatar.com/avatar/<hash>?s=… 换成 https://mgcdn.1988idc.cn/avatar/<hash>?s=…(hash = 邮箱小写去空格后 md5)。 |
| Statically CDN | https://cdn.statically.io/ |
https://mgcdn.1988idc.cn/statically/gh/jquery/jquery@3.6.0/dist/jquery.min.js |
把 https://cdn.statically.io/… 换成 https://mgcdn.1988idc.cn/statically/…。 |
| GitHub Raw 直通 | https://raw.githubusercontent.com/ |
https://mgcdn.1988idc.cn/ghraw/cdnjs/cdnjs/master/ajax/libs/jquery/3.7.1/jquery.min.js |
把 https://raw.githubusercontent.com/… 换成 https://mgcdn.1988idc.cn/ghraw/…(后台可配置 GitHub 镜像模式)。 |
HTML 引入示例
<!-- jQuery -->
<script src="https://mgcdn.1988idc.cn/cdnjs/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://mgcdn.1988idc.cn/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
<!-- Vue 3 -->
<script src="https://mgcdn.1988idc.cn/npm/vue@3.4.21/dist/vue.global.prod.js"></script>
<!-- ESM 模块 -->
<script type="module">
import React from "https://mgcdn.1988idc.cn/esm/react@18.2.0";
</script>
Gravatar 头像用法
<!-- hash = md5( 小写去空格的邮箱 ) -->
<img src="https://mgcdn.1988idc.cn/avatar/<?= md5(strtolower(trim($email))) ?>?s=120&d=identicon" alt="">
<!-- 参数 -->
<!-- s 尺寸 1-2048,默认 80 -->
<!-- d 默认头像:mp / identicon -->
<!-- / monsterid / wavatar -->
<!-- / retro / robohash -->
<!-- / blank / 404 / 图片URL -->
<!-- r 分级:g / pg / r / x -->
<!-- f=y 强制返回默认头像 -->
头像按 hash + 尺寸 + 默认头像 + 分级 组合缓存,默认 30 天。
后台可以批量预热邮箱列表,避免访客首次访问时等待。
针对无法访问 GitHub 的机器
本站提供 /ghraw/ 直通路由,后台可配置 GitHub 镜像(替换 或 叠加 两种模式),
不能直连 GitHub 的服务器只需把 https://raw.githubusercontent.com/ 换成 https://mgcdn.1988idc.cn/ghraw/ 即可:
<?php
// 原来
$url = 'https://raw.githubusercontent.com/user/repo/main/README.md';
// 现在
$url = 'https://mgcdn.1988idc.cn/ghraw/user/repo/main/README.md';
最近拉取
展示最近被拉取到本地缓存的资源(每 30 秒自动刷新"多久前")。
| 资源 | 来源 | 大小 | 拉取于 |
|---|---|---|---|
jquery@3.7.1/src/css/showHide.js |
jsDelivr · npm | 2.25 KB | 5 分钟前 |
jquery@3.7.1/src/css/support.js |
jsDelivr · npm | 4.74 KB | 5 分钟前 |
jquery@3.7.1/src/css/var/cssExpand.js |
jsDelivr · npm | 88 B | 5 分钟前 |
jquery@3.7.1/src/css/var/getStyles.js |
jsDelivr · npm | 409 B | 5 分钟前 |
jquery@3.7.1/src/css/var/isHiddenWithinTree.js |
jsDelivr · npm | 1.25 KB | 5 分钟前 |
jquery@3.7.1/src/css/var/rboxStyle.js |
jsDelivr · npm | 123 B | 5 分钟前 |
jquery@3.7.1/src/css/var/rcustomProp.js |
jsDelivr · npm | 57 B | 5 分钟前 |
jquery@3.7.1/src/css/var/rnumnonpx.js |
jsDelivr · npm | 131 B | 5 分钟前 |
jquery@3.7.1/src/css/var/swap.js |
jsDelivr · npm | 501 B | 5 分钟前 |
jquery@3.7.1/src/core/toType.js |
jsDelivr · npm | 379 B | 5 分钟前 |
jquery@3.7.1/src/core/var/rhtml.js |
jsDelivr · npm | 64 B | 5 分钟前 |
jquery@3.7.1/src/core/var/rsingleTag.js |
jsDelivr · npm | 244 B | 5 分钟前 |