How to force ie11 to request a new favicon?

后端 未结 4 1656
清歌不尽
清歌不尽 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 03:40

    To change a favicon and make sure that the new favicon will be displayed instead of the old one, an easy and dummy way is to change the name of the favicon, you don't have to call it favicon.ico, call it anything.ico and put the usual line of code in the head section:

    <link rel="shortcut icon" href="interdit.ico"> 
    

    and upload the ico file : anything.ico (change anything for whatever you want).

提交回复
热议问题