IIS :
Add the following lines to your web.config
add this section to your web.config and then those mime types will be automatically added to IIS on any server you deploy to. (The remove is to avoid a duplicate mime type error in case they are already there)
fileExtension=".woff" />
fileExtension=".woff" mimeType="application/font-woff" />
fileExtension=".woff2" />
fileExtension=".woff2" mimeType="font/x-woff" />
apache:
ok
You have to add these lines because by default Apache is not configured with .woff as a default MIME-type. Apache default MIME-type This holds for IIS as well. As Seb Duggan explains here:IIS default MIME, by default .woff files will not be served by the server.
No comments:
Post a Comment