IE10 Favicon Issue

2019-02-25 06:35发布

问题:

I've googled this issue, read all the threads, done what they have said and still I am having a problem trying to display a simple favicon.ico in IE10!

The file size is 16x16 (I have also tried 32x32) and it works perfectly in Chrome, FireFox and Safari so I know I have implemented the code right.

This is what I have done so far:

1) Placed the favicon.ico in the root folder

2) added these lines of code:

<link rel="shortcut icon" href="http://www.barnhillmarketing.co.uk/favicon.ico" type="image/x-    icon"> 
<link rel="icon" href="/favicon.ico" type="image/x-icon" />

3) Tried both absolute and relative URLs.

4) Cleared my internet cache / history and rebooted still with no joy.

5) Made the icon again in a favicon generator still to no avail.

If anyone has a fix for this then that would be fantastic as I am at my whits end with this :-/ If you go to http://www.barnhillmarketing.co.uk/favicon.ico you will see the icon shows up so I have no idea what is going on here :-(

Thanks in advance,

Keith

回答1:

I had the same problem a few days ago. If you change the path of the favicon using versions for example its clears all caching issues.

<link rel="icon" href="/favicon.ico?v=1" type="image/x-icon" />