diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index 28b0825..5184c93 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -7,3 +7,13 @@ + +{{/* + 图标覆盖:Gitea 只在 head 里给 rel=icon 指向 /assets/img/favicon.svg(无版本号), + 浏览器会把 favicon 单独缓存在 origin 级别的数据库里,普通刷新不会重拉, + 所以线上明明已经是蓝色 Q,老访客标签页还显示旧的绿色 Gitea 杯子。 + 这里再挂一组带 ?v= 的图标链接强制重拉;换 Logo 时把 v= 的数字加一即可。 +*/}} + + +