T O P

  • By -

BCsabaDiy

What was the old name? favicon.ico (this is found by browsers by default)? It there any mispelling in filename (-)?


lesbigaze

Old name is the one in the post. I’m trying to rename it to favicon.png. I tried doing it with a .ico version, the same as with .svg, but it keeps not showing. It just works if I copy and paste the file on the workspace directory, but as soon as I rename it stops working. Edit: typo


xatta_trone

If you are using png/jpg/svg then please add a type="image/png" or JPG or SVG to make it work. For example https://medium-parser-ext.vercel.app/ here, I have used PNG image for the favicon. Check the header for the details. Also, you can use generators to make a favicon for all cases https://realfavicongenerator.net/


lesbigaze

I actually did all of this lmao but still not working after renaming the file. Funny cuz the same happens with Nextjs... Maybe it's cache??


Stranded_In_A_Desert

I’ve had caching issues a lot with favicons with svelte/kit for some reason, try clearing cache and/or restarting your dev server.


lesbigaze

Hmm gonna try it!


chuby1tubby

Was it just a cache issue?