Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 Not Found serving .woff2 #5

Merged
merged 4 commits into from
Mar 23, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/MvcBoilerplate/Content/bootstrap/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

@import "bootstrap.less";

@icon-font-path: "../../Content/fonts/bootstrap";
@icon-font-path: "../../Content/fonts/bootstrap/";
5 changes: 4 additions & 1 deletion Source/MvcBoilerplate/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@
<!-- .woff - Served as font/woff. Use the correct MIME type of application/x-font-woff. -->
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<!-- .woff2 - Served as font/woff. Use the correct MIME type of application/x-font-woff. -->
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
<!-- .webp - IIS does not have a WEBP MIME type by default. -->
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
Expand Down Expand Up @@ -381,4 +384,4 @@
<httpHeaderSecurityModule xmlns="http://nwebsec.com/HttpHeaderSecurityModuleConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NWebsecConfig/HttpHeaderSecurityModuleConfig.xsd">
</httpHeaderSecurityModule>
</nwebsec>
</configuration>
</configuration>
2 changes: 1 addition & 1 deletion Source/MvcBoilerplateTemplate/Content/bootstrap/site.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

@import "bootstrap.less";

@icon-font-path: "../../Content/fonts/bootstrap";
@icon-font-path: "../../Content/fonts/bootstrap/";
5 changes: 4 additions & 1 deletion Source/MvcBoilerplateTemplate/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@
<!-- .woff - Served as font/woff. Use the correct MIME type of application/x-font-woff. -->
<remove fileExtension=".woff" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
<!-- .woff2 - Served as font/woff. Use the correct MIME type of application/x-font-woff. -->
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff2" mimeType="application/x-font-woff" />
<!-- .webp - IIS does not have a WEBP MIME type by default. -->
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />
Expand Down Expand Up @@ -381,4 +384,4 @@
<httpHeaderSecurityModule xmlns="http://nwebsec.com/HttpHeaderSecurityModuleConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="NWebsecConfig/HttpHeaderSecurityModuleConfig.xsd">
</httpHeaderSecurityModule>
</nwebsec>
</configuration>
</configuration>