The correct way to add a favicon is without shortcut
, so instead of
<link rel="shortcut icon" href="YOURPATH/favicon.png">
you should use
<link rel="icon" href="YOURPATH/favicon.png">
Even better would be to leave out the tag and just use an favicon.ico file in your root directory. Further reading
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…