We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Audio files not cached

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
cbjugstad
Posts: 5
Joined: Sat Apr 07, 2018 11:34 am

Audio files not cached

Post by cbjugstad »

I've read the following caching references in the documentation.

http://www.plumvoice.com/docs/dev/devel ... ce:caching
https://www.plumvoice.com/docs/dev/voicexml:tags:audio

My goal is to have Plum cache my audio files (.wav) for a period of time.

Below is snippet of the vxml with how I'm prompting with an audio file served by my application...

Code: Select all

<prompt>
<audio maxage="10800" maxstale="0" src="https://myhost/plum/assets/11cbfc07-6f8c-4747-9283-2962518002ed/RC2u.wav"/>
</prompt>
The audio plays but subsequent executions of the call all result in a cache miss...
I was unable to find much documentation that talks specifically about audio file caching. I would expect that subsequent calls within the maxage range would use a cached audio file.

Also, here's the HTTP response headers my application provides when serving the audio file...

Code: Select all

Cache-Control	max-age=10800, max-stale=0
Content-Length	30669
Content-Type	audio/wav
Date	Mon, 04 Jun 2018 16:43:22 GMT
Etag	"0adaac5b5586a87cfa8dc573be96a0cb1"
Expires	Mon, 04 Jun 2018 19:43:22 GMT
Last-Modified	Wed, 28 Mar 2018 00:09:58 GMT
Am I missing some configuration setting, header or vxml attribute to get this to work?

Thanks

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Audio files not cached

Post by support »

Hi,

Given the large scale of our systems and the shared nature of our infrastructure, it will take a fairly large number of calls for your audio files to be fully distributed to our caching systems. The easiest way to confirm that your cache settings are correct is to play the audio twice in the same call. Because that one call will occur on a single software instance the second reference to that audio file should show a "Cache Hit". Repeat calls will still show the initial audio file request as a "Cache Miss" until you have hit a sufficient number of software instances. If for some reason you do not see a Cache Hit then there is an issue with either your VoiceXML code or the HTTP header responses from your web server.

Regards,
Plum Support

Post Reply