Reputation: 5141
Using the code from this answer: https://stackoverflow.com/a/9744961/514773
I've noticed that any time I enter: http://localhost:8080 into my browser the output result is:
http://localhost:8080/
http://localhost:8080/favicon.ico
Subsequent requests print the same thing. This to me looks like I am getting two requests for price of one. Is this normal? (This is not my desired behavior.)
Upvotes: 4
Views: 5410
Reputation: 1868
How to suppress it though and where in case of jersey ? Have seen the solution as :
<intercept-url pattern="/favicon.ico" access="ROLE_ANONYMOUS" />
Upvotes: 0
Reputation: 18351
Browsers automatically request the favicon.ico
file by default when you issue a request for a web page. The favicon.ico
file is the small icon that appears in the URL bar of your browser.
Upvotes: 9