4

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.)

Community
  • 1
  • 1
LunchMarble
  • 5,079
  • 9
  • 64
  • 94
  • I think it's a browser behaviour. The `favicon.ico` is a standars used by some browser in their tabs. See http://stackoverflow.com/q/1321878/422353 – madth3 Mar 17 '12 at 02:39

2 Answers2

9

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.

Josh Earl
  • 18,151
  • 15
  • 62
  • 91
0

How to suppress it though and where in case of jersey ? Have seen the solution as :

<intercept-url pattern="/favicon.ico" access="ROLE_ANONYMOUS" />
Artjom B.
  • 61,146
  • 24
  • 125
  • 222
siddhusingh
  • 1,832
  • 4
  • 25
  • 30
  • This isn't an answer to *this* question. OP isn't asking to hide the request and it doesn't appear that OP is using jersey (in fact, OP uses C#). – Artjom B. Jun 29 '15 at 11:14