Github Pages 网站图标未显示

SMi*_*Mix 4 html favicon github github-pages

我正在使用 Github Pages 托管一个网站。由于 SSL,我将 Cloudflare 连接到该网站。当我最终添加favicon.ico到我的网站并添加以下代码<head>以使 favicon 显示时,它仍然没有显示。我能做什么?

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
Run Code Online (Sandbox Code Playgroud)

(英语不是我的母语)

编辑:似乎其他人可以看到网站图标,除了我。但为什么?

小智 7

我遇到了完全相同的问题。我能够通过包含 ? 到底。

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">

我不确定为什么添加?有效,但下面的代码没有。

<link rel="shortcut icon" type="image/x-icon" href="favicon.ico?">