kodyl / react-document-meta

HTML meta tags for React-based apps. Works for both client- and server-side rendering, and has a strict but flexible API.
MIT License
320 stars 23 forks source link

Favicon not working when use IE #42

Open blling opened 6 years ago

blling commented 6 years ago

The titile is updated but favicon not display when use IE, the meta as follows:

const meta = {
      title: 'HomePage Title',
      description: 'This is the homepage title',
      link: {
        rel: { icon: '/favicon.ico' },
      },
    };
danieljuhl commented 5 years ago

@blling Favicon is loaded by the browser during initial fetch, and has to be part of the SSR generated source code. Can you verify that you have SSR implemented? Otherwise you can't control favicon with react-document-meta as the browsers does not look for changes in the HTML head meta tags after loading the HTML.