I have a warning in Google for my font-face:
Resource interpreted as Font but transferred with MIME type application/octet-stream: ".../Content/Fonts/iconFont.ttf".
It works even if I have this warning but I prefer avoid this warning.
Here is my declaration:
@font-face {
font-family: 'iconFont';
src: url('../Fonts/iconFont.eot?#iefix') format('embedded-opentype'),
url('../Fonts/iconFont.svg#iconFont') format('image/svg+xml'),
url('../Fonts/iconFont.woff') format('font/x-woff'),
url('../Fonts/iconFont.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
I already search on other posts but no luck so far.
Please note that my server is IIS from Microsoft.
Any idea how can I avoid this warning?
Thanks.
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>