HTML favicon won't show on google chrome

后端 未结 14 902
灰色年华
灰色年华 2020-11-27 16:28

I am making a HTML page that is unpublished . One of the things I wanted to do was add a favicon to appear next to the title. I\'m using google chrome and I noticed that oth

14条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 17:11

    A common issue where the favicon will not show up when expected is cache, if your .htaccess for example reads: ExpiresByType image/x-icon "access plus 1 month"

    Then simply add a random value to your favicon reference:

    Works every time for me even with heavy caching.

提交回复
热议问题