How to set favicon?

64 views
Skip to first unread message

Webdev Tory Anderson

unread,
Mar 23, 2017, 11:03:44 AM3/23/17
to Immutant
I usually deploy my immutant apps to Wildfly. I'm hoping the solution is the same whether doing wildfly or uberjar: how do I set a favicon for my app? With Wildfly, it's a shared server with multiple standalone deployments (if that matters).

Sorry if the solution isn't at the Immutant level; any pointers on where the favicon specification occurs would be helpful.

Toby Crawley

unread,
Mar 23, 2017, 11:42:35 AM3/23/17
to Webdev Tory Anderson, Immutant
I'm no expert, but I don't think there is anything WildFly specific
about this. I believe your pages would just need to include `<link
rel="icon" href="/path/to/icon.ico"/>` on the `head` element. However,
I don't know how various browsers behave with respect to caching, so
if you want to serve different icons from multiple apps on the same
domain from one WildFly, you may see the wrong icon at times.

- Toby
> --
> You received this message because you are subscribed to the Google Groups
> "Immutant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to immutant+u...@googlegroups.com.
> To post to this group, send email to immu...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/immutant/a17ee963-bb68-4a97-be8d-9cfc6931f6f2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Webdev Tory Anderson

unread,
Mar 23, 2017, 1:17:59 PM3/23/17
to Immutant, web...@toryanderson.com
Ah! I've actually never defined favicons that way; I've just relied on Apache's default behavior of using the favicon.ico from the top-level project directory. I'll try that.
Reply all
Reply to author
Forward
0 new messages