session-pysogs
session-pysogs copied to clipboard
Prevent 404 requests to favicon.ico
Prevents failed request for favicon.ico resulting in 404 Not found error in server log lines (causing disk write and used space) and web browser requests.
Based on https://stackoverflow.com/a/38917888
Can someone confirm whether this works for Safari? (There are comments in the referenced link that it does, but they are also quite old comments).
Can someone confirm whether this works for Safari?
I have asked a Safari user if he sees any warnings or errors on developer console/network tab and he said:
I tested Safari Version 16.0 (17614.1.25.9.10, 17614) on macOS, but the <head><link rel="icon" href="data:,"><head/>
solution didn't work for me.
Note that browsers cache favicon.ico, so you need to make sure to clear the cache every time before testing:
https://oit.colorado.edu/tutorial/clear-web-browser-cache-safari

I was requested to test on MacOS and Safari, here's the result from the console.