I can see a clear and simple site icon like the first one on the picture sometimes in the web or client.
Or a blurry png icon like the second one.
I want to know in what situations they will appear correspondingly?
And is there a way to customize the icon below? My understanding is that this site is missing because I can see the corresponding .miss file for the domain name in “data/icon_cache”.
Yes, it’s most likely possible. You can manually place icons for individual hosts:
If you want to change the default that is not easily possible because the image is embedded into the binary so you would have to recompile Vaultwarden with a replaced fallback image (and while I think it’s unlikely that the request would fail also the web-vault to be sure).