MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
WebPagetest Forums - favicon content type

WebPagetest Forums

Full Version: favicon content type
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I asked my developer to add to the .htaccess file the following line under <IfModule mod_expires.c>
ExpiresByType image/ico "access plus 1 years" to set an expire date for the favicon
But it didn't have an expire date, couldn't figure it out till I loaded the icon in Firefox and noticed this part of the response headers
Quote:Content-Type: text/plain; charset=WINDOWS-1251
strange, no?
I downloaded the favicon, uploaded on a different site and everything was fine, can you help me understand what the issue here isHuh

Thanks much
You should be able to add

Code:
<IfModule mod_mime.c>
    AddType image/ico .ico
</IfModule>

to get Apache to set the correct mime type for the favicon.
Google uses: "Content-Type: image/x-icon". Me too.

While correct type is "image/vnd.microsoft.icon". More reading:
http://en.wikipedia.org/wiki/ICO_(file_f...#MIME_type
(11-17-2011 11:13 AM)pmeenan Wrote: [ -> ]You should be able to add

Code:
<IfModule mod_mime.c>
    AddType image/ico .ico
</IfModule>

to get Apache to set the correct mime type for the favicon.

it didn't do the job, no idea why (worked on a test site though), and why is it served as wrong file type in first place?
whats interesting here is that when I add the <IfModule mod_mime.c> in a .htaccess of a subfolder it does work (but I don't want to work with htaccess on subfolders)
any idea? does it matter in which order it's entered in the .htaccess file? on the subfolder I had only this one line
Code:
<IfModule mod_mime.c>
    AddType image/ico .ico
</IfModule>
so maybe other parts of the htaccess is conflicting this one?
We moved to a different hosting (for other reasons) and the favicon is now fine!
(11-22-2011 07:02 AM)laboot Wrote: [ -> ]Google uses: "Content-Type: image/x-icon". Me too.

While correct type is "image/vnd.microsoft.icon". More reading:
http://en.wikipedia.org/wiki/ICO_(file_f...#MIME_type

+1 for Content-Type: image/x-icon
Reference URL's