Created
April 3, 2019 20:57
-
-
Save dacanizares/615a22aa0648ea1451dbfe2d1a3e3084 to your computer and use it in GitHub Desktop.
Azure ReactJS web config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<clientCache cacheControlMode="DisableCache"/> | |
</staticContent> | |
<rewrite> | |
<rules> | |
<rule name="Pushstate Routes" stopProcessing="true"> | |
<match url=".*"/> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/> | |
</conditions> | |
<action type="Rewrite" url="/"/> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
<location path="static"> | |
<system.webServer> | |
<staticContent> | |
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00"/> | |
</staticContent> | |
</system.webServer> | |
</location> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment