IE5 "favourites" icons when bookmarking, was Re: Explorer 5 icon

IE5 "favourites" icons when bookmarking, was Re: Explorer 5 icon

Post by Alan J. Flavel » Thu, 15 Apr 1999 04:00:00



(I'm taking the initiative of moving this part of the thread to
c.i.w.servers.unix.

For new readers: this is about IE5's observed habit, when someone
bookmarks /path/to/something, of requesting /path/to/favicon.ico and
when it doesn't find it, then requesting /favicon.ico from the document
root directory.  With the resulting '404' errors in the server's access
and error logs.  And what to do about it.

"Now read on"  ;-)


> > Seems to me that we need a custom 404 ErrorDocument, that puts out a
> > redirect to the default favicon if no local favicon is found.

> Um - how about a 301 redirection to some well-known and copyrighted
> icon at www.microsoft.com?  

I've done a few experiments here, although it's quite a struggle, once
IE5 has retrieved one of these icons, to persuade it to try again; it
seems to cache them away in some secret hideyhole that is not cleared
by clearing the cache _or_ the history list.  Anyhow...

I'm coming to the conclusion that in this particular context, if IE5
gets a redirection status in response to the request for
/path/to/favicon.ico, it gives that attempt up, and immediately looks
for /favicon.ico instead.

Can anyone confirm or refute this observation, please?

I had thought that configuring an error document, say something like
this

<Files favicon.ico>
ErrorDocument 404 http://www.what.ever/some-other-path/any-browser.ico
</Files>

would mean that in any directory where an icon had not been explicitly
provided, the first attempt would get redirected to some pre-selected
icon (not necessarily the one used for the document root).  I had hoped
in this way to avoid multiple copies of the thing getting cached in
proxies etc.  However, this doesn't seem to be effective:  as I say, my
observations are suggesting that they abandon the retrieval if the
server returns a redirection (I tried both 302 and 301 status).

There's an HTML-based solution described at the MS site:

<LINK REL="SHORTCUT ICON" href="/some-other-path/any-browser.ico">

and this works (and seems harmless enough), as long as this is specified
in the head of every relevant document.  Any non-doc-root documents that
don't have that would (a) cut an error record for the first attempt and
then (b)  fetch the document root's favicon.ico, assuming there was one.

Adapting the above formula to perform a shortcut rather than an external
redirect:

<Files favicon.ico>
ErrorDocument 404 /some-other-path/any-browser.ico
</Files>

will get the icon to the browser OK without a server error being logged,
right?  But these objects will then all be appearing under different
URLs, so I guess multiple instances of them are going to get cached in
proxies, agreed?

 
 
 

IE5 "favourites" icons when bookmarking, was Re: Explorer 5 icon

Post by Steve Pu » Fri, 16 Apr 1999 04:00:00


On Wed, 14 Apr 1999 18:33:36 +0200, "Alan J. Flavell"


>I've done a few experiments here, although it's quite a struggle, once
>IE5 has retrieved one of these icons, to persuade it to try again; it
>seems to cache them away in some secret hideyhole that is not cleared
>by clearing the cache _or_ the history list.  Anyhow...

Mine did vanish when I cleared both cache and history at the same time
(Win98). Haven't experimented further.

        Steve

--
"Reality must take precedence over public relations.  
 Nature cannot be fooled."                   - Richard Feynman

Steve Pugh     http://ds.dial.pipex.com/town/estate/ax16/

 
 
 

1. "mounted cd-rom" and "mounted samba share" icons on KDE 3.1 desktop

I have just installed Mandrake 9.1/KDE 3.1 on my machine. I noticed
that I now have a set of icons coresponding to automounted
directories. For example, I have both a "Mounted CD-ROM" and a
"Mounted Samba (Windows)"-type icon. While I think this is a nice
trick, I would like to remove these icons from my desktop (I prefer
the command line for such things). However, I could not find any way
to achieve this; right-clicking on the icons does not offer a "delete"
choice. I would greatly appreciate if somebody would enlighten me as
to what KDE option or configuration file do I have to modify.

Thank you in advance for all your help.

Gerd

2. Wanted: X86config for Diamond Speedstar A200

3. How to set the icon image of "dtterm"/"xterm" ?

4. rusage for each thread

5. How do I serve customized favorite icons for IE5

6. Cant install packages (FreeBSD 3.0)

7. GETSERVBYNAME()????????????????????"""""""""""""

8. boot from ibm microdrive

9. Icons, Icon veiwer and Icon converter

10. """"""""My SoundBlast 16 pnp isn't up yet""""""""""""

11. icons "Gnome style" under fluxbox

12. S: "pinguin.ico" Icon for my WIN95-Desktop, for linux-boot !

13. Icons appearing as "?"