Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 26542

font file content-type is wrong and causing issue on request

$
0
0

Hi,

I am using MVC4 and IIS 7.

I have some font files with extension ".woff", ".eot". Whenever I am running my site, I see in fiddler the font file with extention ".eot" is not downloaded.

Fiddler says: for font file : ProximaNova-Regular.eot        Content-type:    text/html, charset=utf-8 which is WRONG

ProximaNova.woff   it says  Content-type: font/x-woff which is CORRECT.

I have added the MIME types in web.config as shown below:

<staticContent><remove fileExtension=".eot" /><mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /><mimeMap fileExtension=".otf" mimeType="font/otf" /><mimeMap fileExtension=".woff" mimeType="font/x-woff" /></staticContent>

 Any ideas why its getting wrong content-type ?

Bcoz of wrong content type I am getting error in requests.


Viewing all articles
Browse latest Browse all 26542

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>