analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Favicon loading inconsistently and/or not updating

Open Danziger opened this issue 4 years ago • 6 comments

Past Issues Searched

  • [X] I have searched open and closed issues to make sure that the bug has not yet been reported

Issue is a Bug Report

  • [X] This is a bug report and not a feature request, nor asking for self-hosted support

Using official Plausible Cloud hosting or self-hosting?

Plausible Cloud from plausible.io

Describe the bug

There are two separated but related issues:

  1. Favicons in subdirectories do not load. For example, in this sit: https://danziger.github.io/stylophonejs/.

  2. Favicons in the site selector (current value, loaded from https://icons.duckduckgo.com/ip3/...) do not match the ones inside the selector's options (loaded from Plausible's own server).

Expected behavior

  1. Favicons should always load properly.
  2. The favicon for a given site should be shown consistently across the page.

Screenshots

image

Environment

- OS: Windows 10
- Browser: Chrome
- Browser Version: `Version 103.0.5060.114 (Official Build) (64-bit)`

Danziger avatar Jul 11 '22 15:07 Danziger

Thanks for reporting that @Danziger! We get these icons directly from DuckDuckGo and do not have control over them. We basically showcase the same icon that they show in their search results. So as soon as they update their database, we will also display the new icon. I hope this makes sense, thanks!

metmarkosaric avatar Jul 11 '22 17:07 metmarkosaric

@metmarkosaric Well, in the screenshot above, the icon next to the current select value points to https://icons.duckduckgo.com/ip3/solman.cat.ico while the one in the list (for the same site) points to https://plausible.io/favicon/sources/solman.cat, which seems to be rendering the right image.

If you were using your internal URL instead of directly pointing to DuckDuckGo, they would match and actually show the correct image in both places.

Regarding the subdirectories issue, ok, that doesn't work in DuckDuckGo either... 😢

Danziger avatar Jul 11 '22 17:07 Danziger

For me both of those links show the same favicon. Perhaps it was cache or something like that

metmarkosaric avatar Jul 11 '22 18:07 metmarkosaric

Yep, I can confirm issue number 2 is a caching issue. I tried to add a random query string to the favicon (https://solman.cat/favicon.ico?v=f4c299d2-694d-4074-a50f-945064da35d4) but that doesn't fix the issue either...

However, when I access the page from a different location (using a VPN) it looks fine.

I'll see if I can resolve issue number 1 using absolute URLs instead.

Danziger avatar Jul 13 '22 14:07 Danziger

Thanks for the update @Danziger! I'll close this for now as everything seem to work the way it is intended.

metmarkosaric avatar Jul 13 '22 18:07 metmarkosaric

I have similar issue. No favicon is showing up here (latest version), I rembember seeing them there a while back:

image

But most of them (not all) are showing up here:

image

How to resolve? @metmarkosaric

rollecode avatar Jun 29 '23 07:06 rollecode