Web缓存网
使用国内主流CDN分发网络,缓存常用或指定Web项目的静态资源,来加速您的网站的访问。
目前已包含常用前端公共库、Google字体库服务、CDNJS镜像服务、NPM资源文件服务,且已支持对托管在GitHub、GitLab、Gitea、Gitee、GitCode和Bitbucket等代码托管平台下的Web项目的加速。
常用前端公共库
分类列举如下:
-
Normal
服务地址为:https://lib.webstatic.cn/ajax/
URL示例如下:// lodash https://lib.webstatic.cn/ajax/lodash/4.17.20/lodash.min.js
// jQuery https://lib.webstatic.cn/ajax/jquery/2.2.4/jquery.min.js
// moment https://lib.webstatic.cn/ajax/moment.js/2.29.1/moment.min.js
// vue https://lib.webstatic.cn/ajax/vue/2.6.12/vue.min.js
-
for Google Ajax Libraries
服务地址为:https://lib.webstatic.cn/google/
URL示例如下:// D3 https://lib.webstatic.cn/google/d3js/7.8.5/d3.min.js
// Dojo https://lib.webstatic.cn/google/dojo/1.13.0/dojo/dojo.js
// Ext Core https://lib.webstatic.cn/google/ext-core/3.1.0/ext-core.js
// jQuery https://lib.webstatic.cn/google/jquery/3.7.0/jquery.min.js
// Angular.js https://lib.webstatic.cn/google/angularjs/1.7.9/angular.min.js
// Web Font Loader https://lib.webstatic.cn/google/webfont/1.6.26/webfont.js
-
for Microsoft Ajax Libraries
服务地址为:https://lib.webstatic.cn/microsoft/
URL示例如下:// Microsoft Ajax https://lib.webstatic.cn/microsoft/3.5/MicrosoftAjax.js
// jQuery https://lib.webstatic.cn/microsoft/jquery/jquery-3.7.0.min.js
-
for jQuery
服务地址为:https://lib.webstatic.cn/jquery/
URL示例如下:// jQuery https://lib.webstatic.cn/jquery/jquery-3.7.1.min.js
https://lib.webstatic.cn/jquery/jquery-2.2.4.min.js
https://lib.webstatic.cn/jquery/jquery-1.12.4.min.js
// jQuery UI https://lib.webstatic.cn/jquery/ui/1.13.2/themes/smoothness/jquery-ui.css
https://lib.webstatic.cn/jquery/ui/1.13.2/jquery-ui.min.js
// jQuery Mobile https://lib.webstatic.cn/jquery/mobile/1.4.5/jquery.mobile-1.4.5.min.css
https://lib.webstatic.cn/jquery/mobile/1.4.5/jquery.mobile-1.4.5.min.js
-
for DataTables
服务地址为:https://lib.webstatic.cn/datatables/
URL示例如下:// DataTables https://lib.webstatic.cn/datatables/2.0.7/css/dataTables.dataTables.min.css
https://lib.webstatic.cn/datatables/2.0.7/js/dataTables.min.js
// AutoFill https://lib.webstatic.cn/datatables/autofill/2.7.0/css/autoFill.dataTables.min.css
https://lib.webstatic.cn/datatables/autofill/2.7.0/js/dataTables.autoFill.min.js
// Buttons https://lib.webstatic.cn/datatables/buttons/3.0.2/css/buttons.dataTables.min.css
https://lib.webstatic.cn/datatables/buttons/3.0.2/js/dataTables.buttons.min.js
字体服务
服务地址为:https://font.webcache.cn
-
1.Google Fonts
-
for Early Access
URL路径格式为: /google/earlyaccess/<family>.css
映射到原地址为:https://fonts.googleapis.com/earlyaccess
例如:
https://font.webcache.cn/google/earlyaccess/amstelvaralpha.css
https://font.webcache.cn/google/earlyaccess/cabinvfbeta.css
https://font.webcache.cn/google/earlyaccess/dhyana.css
https://font.webcache.cn/google/earlyaccess/hanna.css
https://font.webcache.cn/google/earlyaccess/hannari.css
https://font.webcache.cn/google/earlyaccess/notosanskannada.css
-
for CSS
URL路径格式为: /google/css?family=<family>[&subset=<subset>][&text=<text>][&display=<display>][&effect=<effect>]
映射到原地址为:https://fonts.googleapis.com/css
例如:
https://font.webcache.cn/google/css?family=Inconsolata
https://font.webcache.cn/google/css?family=Tangerine|Inconsolata|Droid+Sans
https://font.webcache.cn/google/css?family=Tangerine:bold,bolditalic|Inconsolata:italic|Droid+Sans
https://font.webcache.cn/google/css?family=Cantarell:italic|Droid+Serif:bold
https://font.webcache.cn/google/css?family=Cantarell:i|Droid+Serif:b
https://font.webcache.cn/google/css?family=Cantarell:i|Droid+Serif:700
https://font.webcache.cn/google/css?family=Roboto&display=swap
https://font.webcache.cn/google/css?family=Roboto+Mono&subset=cyrillic
https://font.webcache.cn/google/css?family=Roboto+Mono&subset=greek
https://font.webcache.cn/google/css?family=Roboto+Mono&subset=greek,cyrillic
https://font.webcache.cn/google/css?family=Inconsolata&text=Hello
https://font.webcache.cn/google/css?family=Inconsolata&text=Hello%20World
https://font.webcache.cn/google/css?family=Inconsolata&text=%c2%a1Hola!
https://font.webcache.cn/google/css?family=Rancho&effect=shadow-multiple
https://font.webcache.cn/google/css?family=Rancho&effect=shadow-multiple|3d-float
https://font.webcache.cn/google/css?family=Open+Sans:300,400,600&subset=latin,latin-ext
-
for CSS v2
URL路径格式为: /google/css2?family=<spec>[&family=<spec>...][&icon_names=<icon_names>][&text=<text>][&display=<display>]
映射到原地址为:https://fonts.googleapis.com/css2
例如:
https://font.webcache.cn/google/css2?family=Crimson+Pro
https://font.webcache.cn/google/css2?family=Crimson+Pro:wght@700
https://font.webcache.cn/google/css2?family=Crimson+Pro:wght@400;700
https://font.webcache.cn/google/css2?family=Crimson+Pro:ital,wght@0,700;1,700
https://font.webcache.cn/google/css2?family=Crimson+Pro&display=swap
https://font.webcache.cn/google/css2?family=Crimson+Pro&family=Literata
https://font.webcache.cn/google/css2?family=Comfortaa&text=Hello
https://font.webcache.cn/google/css2?family=Comfortaa&text=Hello%20World
https://font.webcache.cn/google/css2?family=Comfortaa&text=%c2%a1Hola!
https://font.webcache.cn/google/css2?family=Material+Symbols+Outlined&icon_names=home,palette,settings&display=block
-
for Icon
URL路径格式为: /google/icon?family=<family>[&subset=<subset>][&text=<text>][&display=<display>][&effect=<effect>]
映射到原地址为:https://fonts.googleapis.com/icon
例如:
-
-
2.Google Themes Fonts
-
for Theme CSS
Url is generated by google.URL路径格式为: /google_themes/css?<params...>
映射到原地址为:https://themes.googleusercontent.com/fonts/css
例如:
https://font.webcache.cn/google_themes/css?kit=fz37I5dLqkukZAqqEcBXiv5Jgr8ufe5A6KahQF76Xmg
https://font.webcache.cn/google_themes/css?kit=mJ_rGOyyL62_i4eysdBvxCC0kCcps6hmr3Uub3CurLj6HJltGXvViurXJL6xt9sxwzYVTjVaNNEx2pDT4aBU4J6Nc2zktOcTrnnZfLDyCt73rGVtsTkPsbDajuO5ueQw
-
-
3.Adobe Fonts
-
for Kit
URL路径格式为: /typekit/<kit>.(js|css)
映射到原地址为:https://use.typekit.com
例如:
https://font.webcache.cn/typekit/hfz6ufz.js
https://font.webcache.cn/typekit/mcr1zct.js
https://font.webcache.cn/typekit/qgr5ebd.css
-
-
4.CDN Fonts
-
for CSS
URL路径格式为: /cdnfonts/css/:font
映射到原地址为:https://fonts.cdnfonts.com/css
例如:
https://font.webcache.cn/cdnfonts/css/tiki-idols
https://font.webcache.cn/cdnfonts/css/averia
-
-
5.Online WebFonts
-
for CSS
URL路径格式为: /onlinewebfonts/css/:font
映射到原地址为:https://db.onlinewebfonts.com/c
例如:
https://font.webcache.cn/onlinewebfonts/css/df5e41ae1af690fdb8b46ed56048dfbd?family=Boing+WEB+Bold
-
for Icon Font
URL路径格式为: /onlinewebfonts/iconfont/:resource
映射到原地址为:https://db.onlinewebfonts.com/iconfont
例如:
https://font.webcache.cn/onlinewebfonts/iconfont/packs/5195.css
https://font.webcache.cn/onlinewebfonts/iconfont/packs/5195.js
-
字体文件服务
服务地址为:https://font.webstatic.cn
有以下几种子服务:
-
Google个性字体
URL路径格式为: /google/:font/:version/:file
映射到原地址为:https://fonts.gstatic.com/s/ -
Google原始字体
URL路径格式为: /google_fonts/:font/:version/:file
映射到原地址为:https://fonts.gstatic.com/ea/ -
Google主题字体
URL路径格式为: /google_themes/:font/:version/:file
映射到原地址为:https://themes.googleusercontent.com/static/fonts/
CDNJS(cdnjs.com)的国内镜像缓存加速
例如:
// underscore
https://cdnjs.webstatic.cn/ajax/libs/underscore.js/1.13.6/underscore-min.js
// lodash
https://cdnjs.webstatic.cn/ajax/libs/lodash.js/4.17.21/lodash.min.js
// jQuery
https://cdnjs.webstatic.cn/ajax/libs/jquery/3.7.0/jquery.min.js
// bootstrap
https://cdnjs.webstatic.cn/ajax/libs/bootstrap/4.6.2/js/bootstrap.min.js
// moment
https://cdnjs.webstatic.cn/ajax/libs/moment.js/2.29.4/moment.min.js
// echarts
https://cdnjs.webstatic.cn/ajax/libs/echarts/5.4.2/echarts.min.js
// Vue
https://cdnjs.webstatic.cn/ajax/libs/vue/2.7.14/vue.min.js
// React
https://cdnjs.webstatic.cn/ajax/libs/react/18.2.0/umd/react.production.min.js
还有两个服务版本:
-
免费版 (free.webstatic.cn)
基础路径为“/libs/”,不支持.com域名类型的网站访问。
流量为30G/月、300万次/月,单独统计,不参与本站的限制说明。
加速质量依赖腾讯云的免费策略,不排除后期有更多的限制,甚至可能下线。
-
增强版 (cdnjs.webcache.cn)
基础路径为“/ajax/libs/”,仅限.com, .net, .org, .cn, .com.cn等域名类型的网站访问。
资源地址和来源网站都必须使用HTTPS安全加密协议访问。
有一定的防御效果,推荐给对加速质量有较高要求的客户。
NPM(unpkg.com)的国内镜像缓存加速
例如:
// 指定版本号
https://npm.webcache.cn/react@16.7.0/umd/react.production.min.js
https://npm.webcache.cn/react-dom@16.7.0/umd/react-dom.production.min.js
// 指定版本为版本范围或代码标签或忽略版本号
https://npm.webcache.cn/react@^16/umd/react.production.min.js
https://npm.webcache.cn/react@beta/cjs/react.production.js
https://npm.webcache.cn/react/cjs/react.production.js
// 可以只指定软件包名而忽略路径,系统会自动从该软件包下的package.json查找主文件
https://npm.webcache.cn/jquery
https://npm.webcache.cn/three
// 在软件包名后追加'/',可以查看该软件包的文件列表
https://npm.webcache.cn/react/
https://npm.webcache.cn/react-router/
Gravatar(全球公认头像)的国内镜像缓存加速(公测版)
HASH为对email地址(剔除空格并小写)进行SHA256计算的HASH值,若为空,则加载默认头像。
本服务下的资源有效期为一天,过期将重新拉取。以下为功能说明:
-
指定图片格式
-
调整头像大小
用法为(查询参数):?(s|size)=<size>可调整头像大小,最小为16px,最大为2048px,参数值不带单位。例如:
-
默认头像
用法为(查询参数):?(d|default)=<alias>参数可取值为以下图像别名,还可为图片URL地址,但必须指明扩展名为jpg、jpeg、png、gif、webp等,且不允许带参数。
-
强制加载默认头像
用法为(查询参数):?(f|forcedefault)=y例如:
-
指定要显示的头像级别
用法为(查询参数):?(r|rating)=<rating>鉴于中国境内的法律法规,我们禁用该选项,内部强制使用安全选项(g)。 -
组合参数
支持GitHub代码托管服务下的常用web项目:
开发版格式为: https://code-dev.webcache.cn/gh/:user/:repo@:version/:file
例如:
// lodash
https://code.webcache.cn/gh/lodash/lodash@4.17.21/dist/lodash.min.js
// jQuery
https://code.webcache.cn/gh/jquery/jquery@3.6.4/dist/jquery.min.js
// bootstrap
https://code.webcache.cn/gh/twbs/bootstrap@5.2.3/dist/js/bootstrap.min.js
// echarts
https://code.webcache.cn/gh/apache/echarts@5.4.2/dist/echarts.min.js
支持以下主流代码托管服务下的常用web项目的缓存加速:
-
for GitHub
URL路径格式为: /gh/:user/:repo@:version/:file
-
for GitLab
URL路径格式为: /gl/:user/:repo@:version/:file
-
for Gitea
URL路径格式为: /gt/:user/:repo@:version/:file
-
for Gitee
URL路径格式为: /ge/:user/:repo@:version/:file
-
for GitCode
URL路径格式为: /gc/:user/:repo@:version/:file
-
for BitBucket
URL路径格式为: /bb/:user/:repo@:version/:file
共有两个服务版本:
-
正式版 (code.webcache.cn)
其中“:version”只能是形如“1.2.3.4”的纯数字版本号,为了节约成本和防止滥用,不允许带其他说明,比如候选版(rc)、内测版(alpha)、公测版(beta) 等。
-
开发版 (code-dev.webcache.cn)
其中“:version”既可以是纯数字版本号,也可以是附带说明的数字版本号,也可以是仓库分支或标签。不过,只有数字版本号(可附带说明)是有缓存加速的。
此开发版不是本地开发版,而是公共开发版,并非官方用于本地开发的版本或环境。主要是针对公众联调环境而用的,有一定的加速效果,但稳定性和访问速度比不上正式版,请不要用于正式环境。建议用户可作为正式版的补充,也可用于不太重要的场景。
URL路径格式说明:
- :user 用户名
- :repo 代码仓库名
- :version 版本号,或tag标签,或代码分支,正式版仅限版本号。
- :file 代码仓库下的文件相对路径
其他说明:
| 文件类型 | 大小限制 | 尺寸限制 |
| svg | 2KB | - |
| gif | 20KB | 面积小于64x64 |
| jpg | 30KB | 面积小于64x64 |
| png | 40KB | 面积小于64x64 或正方形尺寸小于128x128 |
1.JSLib加速
代码仓库地址:https://github.com/upcache/staticfile
URL路径格式为:https://jslib.webcache.cn/:package/:version/:file
例如:
https://jslib.webcache.cn/underscore.js/1.13.6/underscore-min.js
https://jslib.webcache.cn/lodash.js/4.17.21/lodash.min.js
https://jslib.webcache.cn/jquery/3.7.0/jquery.min.js
2.Logo图片加速
代码仓库地址:https://github.com/upcache/site-logos
URL路径格式为:https://logo.webcache.cn/:site_alias/:version_date/:file
例如:
https://logo.webcache.cn/aliyun/20250331/logo-full.png
https://logo.webcache.cn/cloud.baidu.com/20250331/logo-full.svg
3.主题文件加速
URL路径格式为:https://theme.webcache.cn/:package@:version/:file
例如:
https://theme.webcache.cn/hexo-theme-butterfly@5.5.4/source/js/main.js
https://theme.webcache.cn/hexo-theme-anzhiyu@1.7.0/source/js/main.js
https://theme.webcache.cn/hexo-theme-volantis@6.0.2/source/js/app.js
4.万能资源加速
URL路径格式为:https://res.webcache.cn/:site_domain/:file
例如:
https://res.webcache.cn/unpkg.com/jquery@2.2.4/dist/jquery.min.js
https://res.webcache.cn/code.jquery.com/jquery-3.7.1.min.js
https://res.webcache.cn/pro.fontawesome.com/releases/v5.14.0/css/all.css
https://res.webcache.cn/use.fortawesome.com/349cfdf6.js
5.其他资源加速
-
1)Font Awesome
Font Awesome 字体图标
URL路径格式为:https://cdn.webcache.cn/fontawesome/:version/:path
例如:
https://cdn.webcache.cn/fontawesome/6.6.0/css/all.css
https://cdn.webcache.cn/fontawesome/6.6.0/js/all.js
-
2)LineIcons
LineIcons 字体图标
URL路径格式为:https://cdn.webcache.cn/lineicons/:version/:path
例如:
https://cdn.webcache.cn/lineicons/5.0/lineicons.css
https://cdn.webcache.cn/lineicons/4.0/lineicons.css
https://cdn.webcache.cn/lineicons/3.0/lineicons.css
https://cdn.webcache.cn/lineicons/2.0/LineIcons.css
-
3)Iconify
Iconify 字体图标
URL路径格式为:https://cdn.webcache.cn/iconify[/:component]/:version/:path
例如:
https://cdn.webcache.cn/iconify/1.0.7/iconify.min.js
https://cdn.webcache.cn/iconify/2.2.1/iconify.min.js
https://cdn.webcache.cn/iconify/3.1.1/iconify.min.js
https://cdn.webcache.cn/iconify/iconify-icon/2.0.0/iconify-icon.min.js
-
4)Tailwind CSS
Tailwind CSS
URL路径格式为:https://cdn.webcache.cn/tailwindcss/:version/tailwindcss[-with-<plugin>-<version>].js
例如:
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss.js
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss-with-forms-0.5.4.js
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss-with-typography-0.5.15.js
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss-with-aspect-ratio-0.4.2.js
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss-with-line-clamp-0.4.4.js
https://cdn.webcache.cn/tailwindcss/3.4.16/tailwindcss-with-container-queries-0.1.1.js
-
5)HighCharts
HighCharts 图表
URL路径格式为:https://cdn.webcache.cn/highcharts[/:component]/:version/:path
例如:
https://cdn.webcache.cn/highcharts/11.4.6/highcharts.js
https://cdn.webcache.cn/highcharts/stock/11.4.6/highstock.js
https://cdn.webcache.cn/highcharts/maps/11.4.6/highmaps.js
-
6)Video.js
HTML5视频播放器
URL路径格式为:https://cdn.webcache.cn/video.js/:version/:path
例如:
https://cdn.webcache.cn/video.js/8.16.1/video-js.min.css
https://cdn.webcache.cn/video.js/8.16.1/video.min.js
-
7)WordPress Plugins
WordPress插件,只支持Tag版本
URL路径格式为:https://cdn.webcache.cn/wp/plugins/:name/:version/:path
例如:
https://cdn.webcache.cn/wp/plugins/wp-slimstat/4.6.5/admin/css/slimstat.css
https://cdn.webcache.cn/wp/plugins/wp-slimstat/4.6.5/wp-slimstat.js
-
8)WordPress Themes
WordPress主题
URL路径格式为:https://cdn.webcache.cn/wp/themes/:name/:version/:path
例如:
https://cdn.webcache.cn/wp/themes/twenty-eightteen/1.7/assets/css/editor-style.css
https://cdn.webcache.cn/wp/themes/twenty-eightteen/1.7/assets/js/html5.js
点击这里,查看更多资源加速。
另外,还有万能资源加速服务扩展版(支持加速任意网站下的站内资源)。














