I saved a test favicon for my Flask webapp with Jinja2 in the static folder as favicon.ico. Then I added to the HTML file:
<link rel="shortcut icon" href="{{ url_for('static', filename='favico.ico') }}">
I then deleted the favicon.ico file out of the static folder and added a new favicon and named it the same thing, favicon.ico. It then automatically updates to the previous favicon image I just deleted. It renders the correct favicon when I change the file name to something else though, like favico.ico.
Is this folder caching the previous favicon file by name? How do I clear it if so? I'm running Windows 10 Home.
It can be due to two reason either your flask or your browser is saving it in cache.
Add this to your application.py
:
app.config["CACHE_TYPE"] = "null"
cache.init_app(app)
OR
Try cleaning your browser cache and cookie.
If still doesn't works try checking if you are using the right name as in question you are saying favicon.ico
but writing favico.ico
in link.