不完全确定我在这里错过了什么,但我的偏爱不会加载。我可以访问localhost:8080/ to . its并看到图像,但它不在选项卡中。
app.yaml
handlers:
- url: /favicon\.ico
static_files: static/images/favicon.ico
upload: static/images/favicon\.icoindex.html
<head>
<link rel="shortcut icon" href="/favicon.ico">
</head>dir结构
.
├── static
│ ├── images
│ │ └── favicon.ico发布于 2014-06-01 17:21:28
这是我所拥有的,正在起作用,所以它可能会有帮助.
app.yaml
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /favicon\.png
static_files: favicon.png
upload: favicon\.pngindex.html
<!DOCTYPE html>
<html ...>
<head>
...
<meta property="og:image" content="http://www.my_domain.com/favicon.png"></meta>
...
</head>
</html>favicon.ico和favicon.png文件位于app.yaml文件旁边。
发布于 2014-06-01 19:48:59
这将起作用:
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: static/images/favicon.ico更完整的是:
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
如果您可以直接获得它,您的app.yaml运行良好。如果浏览器没有看到它,它很可能是缓存问题。清除缓存,重新启动浏览器。
https://stackoverflow.com/questions/23982083
复制相似问题