Home >Web Front-end >HTML Tutorial >Solve the Web deployment svg/woff/woff2 font 404 error_html/css_WEB-ITnose
Problem: When I deployed a web project on IIS recently, I found that the browser always reported an error that the woff and woff2 fonts could not be found. As a result, the browser reports a 404 error when loading fonts, which wastes 100-200 milliseconds of loading time.
Reason: Because the server IIS does not recognize SVG, WOFF/WOFF2 file types, just add the MIME type on IIS.
Solution
1. Open the server IIS manager and find the MIME type.
2. Add three MIME types:
svg image/svg xml.woff application/x-font-woff.woff2 application/x-font-woff Note: This article fills in the MIME type in the IIS7 version in the win8 environment. The location of MIME type management is different in IIS6 and IIS7, but the adding method and parameters are the same.