1
I have a client-server application in Flask, and when I get to the server, another get is done by asking for the favicon address.
I wanted to know if you can not automatically do this favicon get.
1
I have a client-server application in Flask, and when I get to the server, another get is done by asking for the favicon address.
I wanted to know if you can not automatically do this favicon get.
0
By my tests here, apparently if you set an image fake for favicon you will prevent the browser from making the default request. To do this, it would be something like:
<link href="data:image/x-icon;base64" rel="icon" type="image/x-icon" />
Thus, when trying to load favicon, the browser will identify that the data it needs to load the image is already present in HTML and omit the request.
Browser other questions tagged python rest flask
You are not signed in. Login or sign up in order to post.
This is the browser that forces you to download favicon has no way to prevent it except by configuring the browser so that you don’t download favicon.
– Guilherme Nascimento
@Guilhermenascimento not even putting an image fake on the basis of
href
favicon?– Woss
@Andersoncarloswoss may work, but the behavior may vary, fortunately this second get I think occurs only in Chrome, it costs nothing to test.
– Guilherme Nascimento