How to prevent favicon.ico requests?

前端 未结 11 1134
栀梦
栀梦 2020-11-22 10:34

I don\'t have a favicon.ico, but my browser always makes a request for it.

Is it possible to prevent the browser from making a request for the favicon from my site? M

11条回答
  •  耶瑟儿~
    2020-11-22 10:53

    Sometimes this error comes, when HTML has some commented code and browser is trying to look for something. Like in my case I had commented code for a web form in flask and I was getting this.

    After spending 2 hours I fixed it in the following ways:

    1) I created a new python environment and then it threw an error on the commented HTML line, before this I was only thrown error 'GET /favicon.ico HTTP/1.1" 404'

    2) Sometimes, when I had a duplicate code, like python file existing with the same name, then also I saw this error, try removing those too

提交回复
热议问题