Solve the Web deployment svg/woff/woff2 font 404 error_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:57
Original
839 people have browsed it

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.



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template