Adding favicon through a http header
问题 Let's assume that I want to add a favicon on a dynamically generated page (specifically an ADF Faces page, but this is irrelevant). I can't modify a tag of my resulted html. So I try to add a http-header in servlet header. I want my header to be identical to html head element: <link rel="shortcut icon" href="http://foo.com/favicon.ico"> I'm adding it this way: httpResponse.addHeader("Link", "<http://foo.com/favicon.ico>; rel=\"shortcut icon\""); And in my browser I see this header in response