为什么自托管字体或 fav.icon 等其他文件必须位于 /static 文件夹中?

Why self-hosted fonts or other files like fav.icon must be located in the /static folder?

为什么自托管字体和 fav.icon 等其他文件必须位于 /static 文件夹中,而图像等其他资源则放在 /src 文件夹中?

自托管字体和网站图标不必位于 /static 文件夹中。
即使位于另一个文件夹中,如果提到的文件目录正确。

但是现代浏览器对不包含 html 中提到的任何图标的网页发送 /favicon.ico 请求。如:如果网页 example.com/page 没有在其 html 中提及的网站图标 (directory/location),则浏览器会自动发送对网站图标 example.com/favicon.ico 的请求。对于这种情况,favicon.ico 文件应该上传到根目录。