0
我們正在使用的應用新字體,所以我說在MimeTypes.config以下文件Sitecore的8.1 MIME類型字體.woff問題
<mediaType extensions=".woff"><mimeType>application/font-woff</mimeType></mediaType>
<mediaType extensions=".woff2"><mimeType>application/font-woff2</mimeType></mediaType>
,但它沒有,那麼我的工作上面取出,並在web.config中加入以下它工作正常。
<staticContent>
<remove fileExtension=".woff" />
<!-- In case IIS already has this mime type -->
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<remove fileExtension=".woff2" />
<!-- In case IIS already has this mime type -->
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
但不明白爲什麼它在MimeTypes.config添加時沒有工作,僅是特定的MIME類型配置。
感謝