Why is there an additional HTTP request "favicon.ico"?

Using the code from this answer: stack overflow

I noticed that whenever I enter: http: // localhost: 8080 in my browser, the output is:

http://localhost:8080/ http://localhost:8080/favicon.ico 

Subsequent requests print the same thing. It seems to me that I get two requests for the price of one. This is normal? (This is not my desired behavior.)

+4
source share
2 answers

Browsers automatically request the favicon.ico file by default when sending a request to a web page. The favicon.ico file is a small icon that appears in the URL bar of your browser.

+9
source

How to suppress it, although where in the case of knitwear? You saw the solution as:

 <intercept-url pattern="/favicon.ico" access="ROLE_ANONYMOUS" /> 
0
source

Source: https://habr.com/ru/post/1401939/


All Articles