Favicons [Web] [HTTP] (38)

1 Name: #!/usr/bin/anonymous : 2007-09-30 02:12 ID:qylxlvoZ

There seems to be a problem with the way favicons (http://en.wikipedia.org/wiki/Favicon) are currently used.

  1. As Wikipedia notes, the historical way of checking /favicon.ico, a reserved location, violates the architecture of the web. In more practical terms, it forces every site and page associated with a hostname to have the same favicon.
  2. The new standards-compliant way of <link rel="icon" href="/whatever"> is only good for (X)HTML files. It is of no use for assigning icons to be associated with images or plain text files.
  3. As a consequence, if an image or plain text file is loaded, it will create a bogus request for /favicon.ico, even if the site really has a favicon that is elsewhere.

The ideal way seems to be to send an HTTP header pointing to the favicon URL associated with the resource. "X-Favicon: /favicon.ico".

I did a quick search for favicon "http header" to see who had come up with this idea before me and why it wasn't used. I found nothing, no instances of this solution being proposed. I'm stunned. Is this so revolutionary not to have occurred to anyone?

4-ch, what do you think?

2 Name: #!/usr/bin/anonymous : 2007-09-30 04:17 ID:LHIFcb6Y

The collective will of the Dark XML Lords speaks thus: YOU ARE A POOR PAWN FOR OUR WORLD DOMINATION PLANS. BEGONE.

3 Name: #!/usr/bin/anonymous : 2007-09-30 12:25 ID:Heaven

The whole concept of favicons is utter shit.

4 Name: #!/usr/bin/anonymous : 2007-09-30 19:00 ID:gWccIiPK

>>3
Care to elaborate?

I, for one, think favicons are a great way to instantly see what web sites are opened in a browser, to identify links and to organize bookmarks.

5 Name: #!/usr/bin/anonymous : 2007-09-30 22:38 ID:qylxlvoZ

Yeah, I wasn't fond of the idea at first but they really do add a lot usability-wise, especially when you have many tabs open.

I really wouldn't mind seeing some serious discussion on this (yeah, I know, I know). Favicon HTTP header.. why not?

6 Name: #!/usr/bin/anonymous : 2007-10-02 09:31 ID:2xX2vZFb

Most website owners don't know how to set up a http header. Making a favicon is already enough of a pain for non-technical people, having them to configure their .htaccess would just make it even worse.

Also, what about robots.txt ? Would you also recommend a X-Robots-exclusion-file: /robots.txt ? Doesn't it work well enough right now?

7 Name: #!/usr/bin/anonymous : 2007-10-02 16:02 ID:Heaven

>>6
non-technical people should stay the fuck away from computers.

8 Name: dmpk2k!hinhT6kz2E : 2007-10-02 16:58 ID:Heaven

>>7
Unrelated to the topic at hand, but that's a good excuse for sloppy UI design, which affects everyone.

It'd have economic impacts as well, but I hope I don't need to state the obvious.

9 Name: #!/usr/bin/anonymous : 2007-10-02 18:46 ID:qylxlvoZ

>>6
Implementing the HTTP header method wouldn't require the existing alternatives to be dropped.

10 Name: #!/usr/bin/anonymous : 2007-10-02 23:58 ID:2x/t+9dA

>>7 should stay the fuck away from computers.

>>9
It would just mean that there are 2 competing implementations for at least 10 years, making the matters even more complicated

11 Name: #!/usr/bin/anonymous : 2007-10-05 23:33 ID:qylxlvoZ

Every new feature makes "matters" more complicated. That hasn't stopped huge amounts of bells and whistles from being added to XML and CSS (I wish it would).

Hmm, if browsers sent a referrer URL for their favicon.ico requests, I could use a temporary redirect based on it. They don't, though.

Honestly, I think this feature (unlike many in HTTP and HTML) has enough use to justify the quite small complication of implementing it. It'd mean, what, 100 lines of code at worst? Less if implemented in a browser that was well-designed and not bloated, but I'm thinking Firefox etc.

12 Name: #!/usr/bin/anonymous : 2007-10-05 23:35 ID:Heaven

But there MIGHT be a good reason not to do things this way. I'm just saying "Adding the feature at all complicates things" isn't that reason. Please, attack my proposal on other fronts.

13 Name: #!/usr/bin/anonymous : 2007-10-06 07:53 ID:mo/fPbkk

>>10
The header could just take precedence over /favico.ico

14 Name: #!/usr/bin/anonymous : 2007-10-06 13:17 ID:3T5d8moA

>>12
I was not really discussing whether or not it should be done that way. Of course a fixed location isn't the best way to go. It's just that on the web, huge problems can take years to get fixed, so nobody will ever care about something that is merely inelegant if that thing already works. That's why I think there's no way this proposal would get any support.

If there were a proposal made by a serious industry coalition (including Microsoft) for an improved icon standard (Maybe associated to some sort of website description microfomat metadata semantic web 3.0 thingie), it could get fixed, but only as a replacement for favicons.

15 Name: #!/usr/bin/anonymous : 2007-10-06 14:48 ID:Heaven

>>14
Is it really that hard to get a patch into Firefox?

16 Name: #!/usr/bin/anonymous : 2007-10-06 16:26 ID:LfUrF1ax

Rather than focusing on the favicon, I would like to suggest that there is more site-level metadata than merely a tiny little icon, and thus something like the sitemaps standard should be extended to add the notion of a favicon, and then a header be introduced to refer to the sitemap.

This way in the future, when someone wants one more thing in there, it doesn't mean sending two headers.

17 Name: #!/usr/bin/anonymous : 2007-10-07 22:33 ID:qylxlvoZ

>>16
Now we're talking! BTW: Sitemaps standard?

18 Name: #!/usr/bin/anonymous : 2007-10-07 23:47 ID:Heaven

Or perhaps we're overengineering?

Well, the rest of the web is incredibly overengineered too, so I guess it'd fit right in.

19 Name: #!/usr/bin/anonymous : 2007-10-09 23:13 ID:mo/fPbkk

I'm not sure if having sitemap + one header (as >>16 suggested) is better than having several headers.

Are headers supposed to be used sparingly?

20 Name: #!/usr/bin/anonymous : 2007-10-10 01:37 ID:Heaven

>>19
a reference to a sitemap is a lot less wasted bandwidth than the content of the sitemap.

21 Name: #!/usr/bin/anonymous : 2007-10-12 16:15 ID:pV9aX/uh

>>1

RFC2068 19.6.2.4 says that this should already work:

Link: <http://example.com/icons/fish.ico>; rel=icon

but neither Firefox nor Opera support it.

22 Name: #!/usr/bin/anonymous : 2007-10-12 20:35 ID:Heaven

>>21
Innnnnnteresting. BTW, you aren't saying that IE supports it, are you?

23 Name: #!/usr/bin/anonymous : 2007-10-14 00:41 ID:Heaven

>>22
he's probably saying he didn't even try it in IE because no one with more than half a brain cell uses IE anymore.

24 Name: #!/usr/bin/anonymous : 2007-10-14 02:40 ID:LfUrF1ax

>>17
Sitemaps standard: http://sitemaps.org/

It's used by Google for finding every link in a site along with how often they are updated... a nice, centralised listing. In theory it replaces robots.txt although they recommend using both (at least until everyone uses the new one anyway.)

>>19
It's true that sitemaps can be large, but the number of hits a person makes on your site can also be large -- remember, the OP was suggesting that every single file on your site gets this new header... that means all images, all javascripts, all stylesheets... this will add up as they visit it more and more, whereas you only need to fetch the sitemap once, and you only need to fetch the favicon as often as the sitemap file tells you to (it might say "this favicon refreshes once every year.")

25 Name: #!/usr/bin/anonymous : 2007-10-14 20:53 ID:ilJRHUE+

>>24
That standard seems to break niceley with dynamic sites (Unless one feels that regenerating a file the size of a few megabytes everytime something changes is a good idea).

26 Name: #!/usr/bin/anonymous : 2007-12-24 17:09 ID:i4IrvRFI

>>25

If I remember correctly, the sitemaps standard allows you to break up a sitemap among multiple files, so that changing a relatively 'volatile' location within it doesn't require rewriting the entire thing.

And to OP, favicons are pretty, and clients like it when you give them one, but they're redundant. The purpose is to give someone a visual clue as to what site they're on, but the design of the site itself should be able to do that.

27 Name: #!/usr/bin/anonymous : 2007-12-24 19:29 ID:Heaven

They're important for usability when you have many tabs open. And if they're worth doing, they're worth doing right.

28 Name: #!/usr/bin/anonymous : 2007-12-27 12:24 ID:Heaven

Doesn't help for multiple tabs in some browsers.

On the other hand, meaningful page titles ARE important for usability when you have many tabs open.

29 Name: #!/usr/bin/anonymous : 2007-12-28 16:12 ID:pV9aX/uh

>>28

They aren't mutually exclusive.

>>26

Favicons aren't to give people a visual clue as to which site they are on, they are designed to be icons for your favorites list which is stupid: Other browsers put them in the tabs, or address bar, or even in the window-icon so you can find that web-application in your alt-tab list. Some web-application applications take advantage of this and animate the favicon so that people can know that a application desires attention. Others use the icon to indicate a logged-in or session state. This means that the favicon has become an additional graphic feedback mechanism.

30 Name: #!/usr/bin/anonymous : 2007-12-30 12:00 ID:Heaven

>>29

> Other browsers put them in the tabs, or address bar, or even in the window-icon so you can find that web-application in your alt-tab list.

Wow, talk about bad application design. If you did that, you would NEVER know what icon your browser was when you're searching for it in alt-tab. You would have to remember the icons for every site you will ever use, and which browser you opened them in most recently.

31 Name: #!/usr/bin/anonymous : 2007-12-30 19:02 ID:pV9aX/uh

>>30

If you have sixty windows open, you would prefer 60 blue e's floating in a scrollable alt-tab box?

Having the page-icon be presented in the window list means it is easier to spot a particular web page, not harder.

32 Name: #!/usr/bin/anonymous : 2007-12-31 11:14 ID:ni5tNuV0

>>30
One can overlay two icons. Bigish app icon, with the favicon in a corner, smallish. It works great (Konqueror does this). What would be neat is if there was some indication of how many tabs any given browser window does have open, but that might be possible with some title bar magic, I dunno.

33 Name: #!/usr/bin/anonymous : 2007-12-31 19:20 ID:Heaven

>>32 Hey now that's a clever idea. Perhaps superimposing the tab-icons as sigils around the browser icon would work well so long as the alt-tab icon was big enough.

34 Name: #!/usr/bin/anonymous : 2008-01-01 14:27 ID:LfUrF1ax

>>31
Who the hell has 60 windows open? Tabbed browsing wasn't invented yesterday.

35 Name: #!/usr/bin/anonymous : 2008-01-02 08:59 ID:Ckt98W+7

>>34
Some people leave tabbing to the window manager. It's a fair approach, really -- doesn't require the application to lift a finger.

36 Name: #!/usr/bin/anonymous : 2008-01-02 13:45 ID:jBytyn0Q

>>35
I think that's the right approach; but until the popular window managers implement it, they're going to be implemented in each program instead.

37 Name: #!/usr/bin/anonymous : 2008-01-02 19:53 ID:Heaven

>>36

Emerald supports it, and is quickly becoming a default for many GNOME users.

38 Name: #!/usr/bin/anonymous : 2008-01-02 22:25 ID:qylxlvoZ

Finally, window managers with tabs. I noticed a few years ago that every program under the sun was implementing tabs itself...

This thread has been closed. You cannot post in this thread any longer.