|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<configuration> |
| 3 | +<system.webServer> |
| 4 | + <httpCompression directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files"> |
| 5 | + <scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" /> |
| 6 | + <dynamicTypes> |
| 7 | + <add enabled="true" mimeType="text/*"/> |
| 8 | + <add enabled="true" mimeType="message/*"/> |
| 9 | + <add enabled="true" mimeType="application/javascript"/> |
| 10 | + <add enabled="true" mimeType="application/json"/> |
| 11 | + <add enabled="false" mimeType="*/*"/> |
| 12 | + </dynamicTypes> |
| 13 | + <staticTypes> |
| 14 | + <add enabled="true" mimeType="text/*"/> |
| 15 | + <add enabled="true" mimeType="message/*"/> |
| 16 | + <add enabled="true" mimeType="application/javascript"/> |
| 17 | + <add enabled="true" mimeType="application/json"/> |
| 18 | + <add enabled="false" mimeType="*/*"/> |
| 19 | + </staticTypes> |
| 20 | + </httpCompression> |
| 21 | + <rewrite> |
| 22 | + <rules> |
| 23 | + <rule name="Angular Routes" stopProcessing="true"> |
| 24 | + <match url=".*" /> |
| 25 | + <conditions logicalGrouping="MatchAll"> |
| 26 | + <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> |
| 27 | + <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> |
| 28 | + </conditions> |
| 29 | + <action type="Rewrite" url="/angular-demos/" /> |
| 30 | + </rule> |
| 31 | + </rules> |
| 32 | + </rewrite> |
| 33 | + <staticContent> |
| 34 | + <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> |
| 35 | + <remove fileExtension=".json" /> |
| 36 | + <remove fileExtension=".csv" /> |
| 37 | + <remove fileExtension=".shp" /> |
| 38 | + <remove fileExtension=".dbf" /> |
| 39 | + <remove fileExtension=".itf" /> |
| 40 | + <remove fileExtension=".svg" /> |
| 41 | + |
| 42 | + <mimeMap fileExtension=".json" mimeType="application/json;charset=UTF-8;" /> |
| 43 | + <mimeMap fileExtension=".csv" mimeType="application/csv;charset=UTF-8;" /> |
| 44 | + <mimeMap fileExtension=".shp" mimeType="application/octet-stream" /> |
| 45 | + <mimeMap fileExtension=".dbf" mimeType="application/octet-stream" /> |
| 46 | + <mimeMap fileExtension=".itf" mimeType="application/octet-stream" /> |
| 47 | + <mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> |
| 48 | + </staticContent> |
| 49 | + <httpProtocol> |
| 50 | + <customHeaders> |
| 51 | + <add name="X-XSS-Protection" value="0" /> |
| 52 | + </customHeaders> |
| 53 | + </httpProtocol> |
| 54 | +</system.webServer> |
| 55 | +</configuration> |
0 commit comments