我有一个Play Framework 2.1.0应用程序,生产模式中的favicon是默认的Play Framework图标,而在开发中它是我定义的图标。相同的路线为我提供了prod中的默认图标,以及dev中的正确图标。
以下是我如何链接favicon:
<link rel="icon" type="image/png" href="@routes.Assets.at("images/favicon.png")">
我有
GET /assets/*file controllers.Assets.at(path="/public", file)
在我的routes
文件上。图标文件位于/public/images
,我使用play clean compile stage
编译应用程序以进行生产。
任何想法为什么路线指向prod和dev中的不同位置,或者为什么它默认为Play图标?
答案 0 :(得分:0)
这可能是浏览器缓存问题,请尝试使用以下html。
>>> l = ["hello"]
>>> l.__hash__()
Traceback (most recent call last):
File "<pyshell#103>", line 1, in <module>
l.__hash__()
TypeError: 'NoneType' object is not callable