Skip to content

Commit 44858a2

Browse files
committed
Added woff file extension to web.config files.
1 parent ebc12dc commit 44858a2

File tree

3 files changed

+18
-0
lines changed
  • src
    • AbpCompanyName.AbpProjectName.WebMpa
    • AbpCompanyName.AbpProjectName.WebSpaAngular
    • AbpCompanyName.AbpProjectName.WebSpaDurandal

3 files changed

+18
-0
lines changed

src/AbpCompanyName.AbpProjectName.WebMpa/Web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,11 @@
101101
<remove name="TRACEVerbHandler" />
102102
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
103103
</handlers>
104+
<staticContent>
105+
<remove fileExtension=".woff" />
106+
<remove fileExtension=".woff2" />
107+
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
108+
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
109+
</staticContent>
104110
</system.webServer>
105111
</configuration>

src/AbpCompanyName.AbpProjectName.WebSpaAngular/Web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,11 @@
9797
<remove name="TRACEVerbHandler" />
9898
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
9999
</handlers>
100+
<staticContent>
101+
<remove fileExtension=".woff" />
102+
<remove fileExtension=".woff2" />
103+
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
104+
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
105+
</staticContent>
100106
</system.webServer>
101107
</configuration>

src/AbpCompanyName.AbpProjectName.WebSpaDurandal/Web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,11 @@
105105
<remove name="TRACEVerbHandler" />
106106
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
107107
</handlers>
108+
<staticContent>
109+
<remove fileExtension=".woff" />
110+
<remove fileExtension=".woff2" />
111+
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
112+
<mimeMap fileExtension=".woff2" mimeType="application/font-woff" />
113+
</staticContent>
108114
</system.webServer>
109115
</configuration>

0 commit comments

Comments
 (0)