Forum Discussion
favicon.ico
Ever since I added in an HTTP profile my favicon.ico in Internet Explorer will not display.
It shows garbage text.
But in Firefox it shows just fine.
Any idea of what to turn on inside of the HTTP profile to get the favicon.ico to display correctly in IE?
Thanks.
- nitassEmployee
It shows garbage text.
do you use http analyzer tool (e.g. httpfox, fiddler)? you have seen IE sending request to /favicon.icon, haven't you?
HttpFox
Fiddler
if yes, can you check whether the content-type value is same on IE and FF?
- ChadBigIP_14663Nimbostratus
OK, I downloaded Fiddler2, it shows my ICON as Content-Type: text/plain
when it should show it as Content-Type: image/x-icon
What do I need to change in the HTTP profile so that it recognizes it as image/x-icon ?
Server: Apache/1.3.27 (Unix)
Last-Modified: Tue, 14 May 2013 03:45:25 GMT
Accept-Ranges: bytes
Content-Length: 3262
Content-Type: text/plain
Expires: Mon, 02 Sep 2013 13:20:19 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Mon, 02 Sep 2013 13:20:19 GMT
Connection: keep-alive
- nitassEmployee
What do I need to change in the HTTP profile so that it recognizes it as image/x-icon ?
i do not think bigip changes the content-type header value. anyway, can you try something like this?
e.g.
[root@ve11a:Active:Not All Devices Synced] config tmsh list ltm rule myrule ltm rule myrule { when HTTP_REQUEST { if { [HTTP::uri] equals "/favicon.ico" } { set favicon 1 } else { set favicon 0 } } when HTTP_RESPONSE { if { $favicon and [HTTP::status] == 200 } { HTTP::header replace "Content-Type" "image/x-icon" } } }
- ChadBigIP_14663Nimbostratus
Should I do something with Compression?
It is set to Disabled
I only see in the include list:
text/ application/(xml|x-javascript)
Should I enable it and put in image/x-icon ?
- Kevin_StewartEmployee
Just to level set, what happens when you completely disable compression?
- ChadBigIP_14663Nimbostratus
It is set to Disabled under http profile
Also, what about Pipelning it is set to Enabled and Insert X-Forwarded-For is set to Enabled
All of this started to happen when I setup a custom HTTP profile.
I do see Contenet Compression is set to Content List - should I change that to Not Configured?
I just looked at the Fiddler Output again, and when it accesses /favicon.ico I now get: Content-Type: image/x-icon - weird - it just showed text/plain before...
I made no changes though......
And it still does not display the favicon.ico in the address bar...
If I setup that iRule that nitass suggested, could that fix it? or could it cause issues to live traffic if I enabled it for my VIP to try?
or is there something else I could try?
- ChadBigIP_14663Nimbostratus
What about Response Chunking, it is set to Selective - should that be changed ? and Redirect Rewrite is set to None...
Maximum Header Size is 32768
And I disabled OneConnect Transformations.
- ChadBigIP_14663Nimbostratus
I can clearly view the favicon.ico in any other browser, except for IE - it shows just garbage text, but in Firefox it shows the clean favicon.ico the way it is suppose to. Only IE is messed up....
- nitassEmployee
I just looked at the Fiddler Output again, and when it accesses /favicon.ico I now get: Content-Type: image/x-icon - weird - it just showed text/plain before...
if favicon.ico is not shown in address bar even content-type is image/x-icon, the irule i gave will not help.
can you find out what different in fiddler between using http profile and not using http profile?
- ChadBigIP_14663Nimbostratus
No difference.
I did apply your iRule.
With your iRule that is when it showed the favicon as image/x-icon when I remove your iRule is goes back to text/plain
When I use Fiddler WebView on /favicon.ico - I clearly see the ICON without any issues.
The only issue is in Internet Explorer only.
Is there some other work around?
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com