Prevent favicon requests: the fastest way to stop the browser from requesting favicon.ico

Опубликовано: 07 Сентябрь 2022
на канале: Dave Hollingworth
9,105
215

When developing HTML, sometimes you'll see an additional request for "favicon.ico" that returns a 404 response.

You can't stop the browser from requesting this file, it does it automatically.

The quickest way to avoid this is to add one line of code to the head element of your HTML.

Please consider supporting my channel:
☕ https://ko-fi.com/davehollingworth

Code shown in the video:
https://gist.github.com/daveh/9c533e8...

00:00 favicon.ico 404
00:21 code to prevent it

#html #shorts


Смотрите видео Prevent favicon requests: the fastest way to stop the browser from requesting favicon.ico онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Dave Hollingworth 07 Сентябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 9,105 раз и оно понравилось 215 людям.