I\'ve learned that the way to add favicon for a web page is to have the following lines in the page.
You can get rid of the unnecessary processing and traffic as well as the error log entries by using the following Apache configuration incantations:
# Don't bother looking for favicon.ico
Redirect 404 /favicon.ico
# Send custom text instead of sending the custom error page
ErrorDocument 404 "No favicon"