Google warning: Resource interpreted as Font but transferred with MIME type application/octet-stream
another approach on here: http://zduck.com/2013/google-chrome-and-woff-font-mime-type-warnings/
use below settings on your web.config:
<system.webServer>
<staticContent>
<mimeMap fileExtension=".woff" mimeType="application/font-woff"/>
</staticContent>
</system.webServer>
Google Chrome gives warning Resource interpreted as Font but transferred with MIME type application/octet-stream:
Actually, I found the answer:
Some browsers, like Google Chrome, will show this warning when a font
is downloaded from a web server that sets an unexpected MIME type for
fonts.For many font types, there is a solution!
Update the configuration for your web server with the following MIME
type per font file extension:.ttf — font/truetype
.otf — font/opentype
.eot — application/vnd.ms-fontobject
.woff — application/x-font-woff
If you
are using Apache configuration, you may include the AddType directive
for each font type:AddType application/vnd.ms-fontobject eot
AddType font/truetype ttf
AddType application/x-font-woff woff
AddType font/opentype otfWith a specific MIME type configured per font, and not the generic
application/octet-stream MIME type, you should no longer see a warning
in your web browser console.This configuration — while effective for cleaning up your console —
does not include the technically correct MIME type for fonts like OTF,
TTF, and WOFF. For these font types, an official MIME type has not
(yet) been approved. An official type for WOFF — application/font-woff
— has been requested.AddType font/opentype otf
http://www.jbarker.com/blog/2011/resource-interpreted-font-transferred-mime-type
Resource interpreted as Font but transferred with MIME type font-woff with NodeJS
Make sure to use full "type/encoding" mime type strings when using data-uris:
data:text/html;base64,.......
data:image/png;base64,.......
data:application/font-woff;base64,.......
In this case you're missing the "application" type indication.
Resource interpreted as Font but transferred with MIME type font-woff with NodeJS
Make sure to use full "type/encoding" mime type strings when using data-uris:
data:text/html;base64,.......
data:image/png;base64,.......
data:application/font-woff;base64,.......
In this case you're missing the "application" type indication.
Resource interpreted as Font but transferred with MIME type application/x-font-woff
According to the W3C spec, the correct MIME type is application/font-woff
, so you need to configure your web server to use that when serving .woff files.
Related Topics
How to Check Which CSS Styles Are Being Used or Not Used on a Web Page
How to Force Re-Render After a Webkit 3D Transform in Safari
Zebra Striping a Table with Hidden Rows Using CSS3
Background-Size in Shorthand Background Property (Css3)
Does Internet Explorer Support CSS Transitions
Less CSS: Abusing the & Operator When Nesting
Bootstrap Change Div Order with Pull-Right, Pull-Left on 3 Columns
Can One CSS File Take Priority Over Another CSS File
How to Create Fluid Trapezoid Image with CSS
Why Are My CSS Properties Being Overridden/Ignored
Css3 Flexbox: Display: Box VS. Flexbox VS. Flex
How to Change Only the Alpha of a Rgba Background Colour on Hover
Combine CSS Attribute and Pseudo-Element Selectors
Continuous CSS Rotation Animation on Hover, Animated Back to 0Deg on Hover Out
How to Stop Jquery Mobile to Apply Styles to My Specific Form Elements
Why Don't CSS Resets Use '*' to Cover All Elements
How to Watch Changes in Whole Directory/Folder Containing Many SASS Files