17Qwerty71
03-05-2017, 09:32
Buongiorno,
ho un applicazione angularjs e vorrei far in modo che il server invia i file html e js ogni volta che questi sono modificati.
Attualmente ho inserito nella root del dominio un file web.config con questa struttura:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<caching>
<profiles>
<add extension=".js" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="01:00:00" />
<add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="01:00:00" />
</profiles>
</caching>
</system.webServer>
</configuration>
Come posso impostare il file per fare questo?
Grazie mille!
ho un applicazione angularjs e vorrei far in modo che il server invia i file html e js ogni volta che questi sono modificati.
Attualmente ho inserito nella root del dominio un file web.config con questa struttura:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<caching>
<profiles>
<add extension=".js" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="01:00:00" />
<add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="01:00:00" />
</profiles>
</caching>
</system.webServer>
</configuration>
Come posso impostare il file per fare questo?
Grazie mille!