<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <staticContent>
      <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
    </staticContent>
    <httpProtocol>
      <customHeaders>
        <add name="Cache-Control" value="no-cache, no-store, must-revalidate" />
      </customHeaders>
    </httpProtocol>
    <rewrite>
      <rules>
        <rule name="Cache assets" stopProcessing="true">
          <match url="\.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2)$" />
          <action type="Rewrite" url="{URL}" />
          <serverVariables>
            <set name="RESPONSE_Cache_Control" value="public, max-age=31536000, immutable" />
          </serverVariables>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>