Google 字体库镜像服务,支持 CSS2 接口与字体静态资源全球加速访问
| 域名 / 地址 | 加速区域 | 说明 |
|---|---|---|
https://google.fonts.ihwx.cn
|
全球加速 | Google Fonts CSS 与字体文件代理 |
https://google.fonts.2hs.cn
|
全球加速 | 备用全球加速节点 |
方式一:HTML link 引入
<!-- 原始 -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- 镜像 -->
<link rel="preconnect" href="https://google.fonts.ihwx.cn">
<link href="https://google.fonts.ihwx.cn/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap" rel="stylesheet">
方式二:CSS @import 引入
/* 原始 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");
/* 镜像 */
@import url("https://google.fonts.2hs.cn/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap");
默认缓存 15 天,过期后会重新请求上游并刷新本地缓存。
Xz-mirror-cache: HIT 表示本地缓存命中,MISS 表示已请求上游。
Xz-mirror-expire 会返回缓存过期时间,时间采用北京时间。