Open Bug 948380 Opened 11 years ago Updated 4 months ago

favicon doesn't show up when a version is given in the url

Categories

(Toolkit :: Places, defect, P5)

25 Branch
x86_64
Linux
defect

Tracking

()

People

(Reporter: elboulangero, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0 Iceweasel/25.0 (Beta/Release)
Build ID: 20131102022523

Steps to reproduce:

I'm writing a webUI for an embedded device.

If I define the favicon like this:
<link rel="shortcut icon" href="resource/favicon.ico" type="image/x-icon">
It works.

But I'd like to give a version to this favicon, so that when I change it in the future, it will be automatically refreshed in the browser's cache.
So I do it like this (notice the v=1):
<link rel="shortcut icon" href="resource/favicon.ico?v=1" type="image/x-icon">

(I picked that trick from stackoverflow)
http://stackoverflow.com/questions/2208933/how-do-i-force-a-favicon-refresh





Actual results:

Without the v=1, it works (ie, the favicon appear in the tab).

With the v=1, it doesn't work on Firefox.
But it does work with other web browsers (Chromium, IE).


Expected results:

Am I correct with the v=1 ?

I don't know if it can be considered as a bug in Firefox, or if I'm wrong when I add the v=1 argument.

Please shine some light on this !
Thanks !
Component: Untriaged → General
Please use SUMO for such matters:
https://support.mozilla.org/en-US/products/firefox

Bugzilla is designed for bug management, not for support. I'll leave the bug open just in case you find it is a Firefox issue. If not, please mark this bug as Resolved Invalid. Thank you :)
Hi Ioana,

thanks for the reply.

From my point of view it's a bug. Adding a querystring to the icon filename shouldn't break anything, and Firefox should display the icon anyway.

But I don't pretend to be an expert on this matter, that's why I don't claim high and loud that it's a bug.
I prefer to describe my use case, and let someone with more knowledge decide if it's a bug or not.

But I'm not asking for support here, I'm sorry if I didn't express myself clearly.

Best regards
We don't store the query string with favicons, so that may explain why it doesn't work in Firefox. If other browsers act differently we may look into why that's the case.

That said, Firefox expires favicons every 7 days or according to the cache settings, so it's not much time before it gets replaced when it changes, it's not stored forever.
Component: General → Bookmarks & History
Hi Marco,

> We don't store the query string with favicons...

I'm not sure to understand... But the problem I observe is not about a favicon that is not refreshed with the query string, it's about a favicon that is not displayed at all when a query string is part of the request. Maybe it was not very clear in my first post, sorry.

> That said, Firefox expires favicons every 7 days...
It's good to know, thanks for the info.

Best regards
(In reply to elboulangero from comment #4)
> I'm not sure to understand... But the problem I observe is not about a
> favicon that is not refreshed with the query string, it's about a favicon
> that is not displayed at all when a query string is part of the request.

Yeah, this may change things slightly, I'll leave this open for investigation, no ETA though for now since doesn't appear as a priority atm.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Severity: normal → S3
Component: Bookmarks & History → Places
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.