返回首页

CDN 域名信息

域名 / 地址 加速区域 说明
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");

替换规则

  1. 1 https://fonts.googleapis.com/css2 替换为 https://google.fonts.ihwx.cn/css2https://google.fonts.2hs.cn/css2
  2. 2 CSS 中引用的 fonts.gstatic.com 字体静态资源会由镜像服务自动改写并代理。
  3. 3 字体参数、字重、语言子集与 display=swap 等查询参数保持 Google Fonts 原始用法。

缓存与响应头

缓存周期

默认缓存 15 天,过期后会重新请求上游并刷新本地缓存。

缓存命中

Xz-mirror-cache: HIT 表示本地缓存命中,MISS 表示已请求上游。

过期时间

Xz-mirror-expire 会返回缓存过期时间,时间采用北京时间。

SSL 证书信息

正在获取证书信息...