How to force ie11 to request a new favicon?

后端 未结 4 1616
清歌不尽
清歌不尽 2021-01-15 03:01

I am working on a website which changes its favicon depending on the user details logged in. A controller processes this request at the back-end and sends the appropriate fa

4条回答
  •  一整个雨季
    2021-01-15 04:02

    Are you sure its not just cached locally. I think the issue is that IE11 doesn't want to look for a new favicon and is using a locally cached one.

    Try forcing it to fetch the favicon. See the answer by Alex here: How do I force a favicon refresh

    You should be able to get the new favicon showing on your device on IE11 by following those steps.

    Alternatively you could completely rename the favicon and use the new name with a link tag.

    Another neat trick in the same thread: How do I force a favicon refresh

    Using the hash of the file as the version guarantees unique names.

提交回复
热议问题