My favicon won't show even though it exists and works when visiting link directly.
HTML:
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
When I use view source on Chrome and click the above link, it takes me to the favicon.
Tried:
I decided to clear cache, restart my browser, then tried my site again and it works fine. Thank you all who tried to help.
try this !
<link rel="icon" type="image/png" href="favicon.png">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
When I had this issue, I was finally able to resolve the issue by changing favicon.ico
to something like favicon.ico?date=20140528
. I was led that that solution by this question: How do I force a favicon refresh
Or wait a moments and it will work correctly ! cause server refersh
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.