I have an that uses Twilio and this app has 2 very different sets of audio files:
- Menus (files never change)
- Information (files change constantly)
At the moment I had to set all the cache for my files of as I couldn't figure out how to set a different expiration date before send the file to twilio, the problem been that twilio download the files directly from the website, so as far I as understand I cannot set the cache using ASP.net
I am using the xml below in the web.config in the directory where my files are at the moment but I cannot find a way to specify different values to different files, for example:
- menu1.wav - max cache
- meny2.wav - max cache
- info1.wav - no cache
- info2.wav - no cache
Is it even possible?
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache" />
</staticContent>
</system.webServer>
</configuration>