donderdag 26 november 2020

React -> index.html without caching for updates

in your web.config add Cache-Control header with no-cache to support updates in your website if you publish a new version of your website 

<?xml version="1.0"?>

<configuration>

<location path="index.html">

<system.webServer>

<httpProtocol>

<customHeaders>

<add name="Cache-Control" value="no-cache" />

</customHeaders>

</httpProtocol>

</system.webServer>

</location>

Geen opmerkingen:

Een reactie posten