Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is my favicon not working on server but is working locally?

New to web dev. I have a favicon that works locally but doesn't want to behave on server. The following is my favicon tag in the head tag:

<link rel="icon" type="image/png" href="../favicon/microphone-icon-192783/microphone-icon-16-192783.ico"/>

Am I missing something for the server?

like image 776
J.S. Orris Avatar asked Dec 06 '14 15:12

J.S. Orris


People also ask

Why is my favicon not showing up on my website?

Your browser has cached your site as one without a favicon When you add a favicon to your site, it may not show up since your browser has 'saved' your site as one without a favicon. You need to clear the cache in your browser or use a different browser.

How do I add a favicon to my server?

To add a favicon to your website, either save your favicon image to the root directory of your webserver, or create a folder in the root directory called images, and save your favicon image in this folder. A common name for a favicon image is "favicon.ico".

Can I use PNG instead of ico for favicon?

A favicon can actually be either a PNG, GIF, or ICO file. However, ICO files are typically used more than others as the file size is smaller and it is supported in all major browsers. PNGs are used more commonly for IOS, Android, and Windows 10 devices.


1 Answers

Old question but for anyone who experienced the same issue as me..

Spent about an hour trying to figure out why i was experiencing the same problem. Clearing history, updating code didnt work.

Restarted chrome browser and worked straight away ahah

like image 155
jazz Avatar answered Sep 30 '22 18:09

jazz