local (file://) website favicon works in Firefox, not in Chrome or Safari- why?

后端 未结 7 1458
-上瘾入骨i
-上瘾入骨i 2020-11-27 18:15

The Question

When my website is local (using the file:// protocol), the favicon doesn\'t show up in Chrome or Safari, but it works in Firefox (all on a

7条回答
  •  南笙
    南笙 (楼主)
    2020-11-27 18:43

    This is a known issue for years. Your code is right, and I don't think you'll find any way to allow Chrome or IE to include a favicon with a non-remotely way.

    Some time ago, I tried a lot of ways, none works, and I wasn't able to find any browser documentation on this point.

    
    
    
    
    
    
    
    
    
    

    For Chrome, favicons are stored in a file : User\AppData\Local\Google\Chrome\User Data\Default\Favicons. We can guess local favicons aren't stored in.

提交回复
热议问题