Avoid getting Favicon in Flask

0

I have a client-server application in Flask, and when I do a get to the server, another get is done by asking the favicon of the address.

I would like to know if you can not automatically get this favicon get.

    
asked by anonymous 19.09.2017 / 21:47

1 answer

0

By my tests here, apparently if you set a fake image for the favicon you will prevent the browser from making the default request. To do this, it would look something like:

<link href="data:image/x-icon;base64" rel="icon" type="image/x-icon" />

So when trying to load the favicon, the browser will identify that the data it needs to load the image is already present in the HTML and omits the request.

    
20.09.2017 / 14:27