After some additional Googling, it seems I just need to create web.config in the Scripts and Images folders (and any others that I would like to cache):
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
</system.webServer>
</configuration>
Is it correct? Did I miss something?
source
share