Audio Files Not Caching
Posted: Wed Jun 22, 2011 1:49 pm
This question is very similar to the post found here: http://support.plumvoice.com/viewtopic. ... hing#p4838
We are having problems with our audio files never being cached, resulting in excessive traffic to our web servers. We have tried manipulating the HTTP headers that come back on an audio request. Following is an example of the returned headers:
So the cache-control as well as the expires are set. Then, within our script we have the following settings in our application root document:
Even with that set we were still seeing cache misses on every request, so we followed the advice given in the thread that I referenced earlier. So an example audio tag would look like:
Even with the audio tags explicitly stating the maxage, our logs still show:
And the exact same three lines show up again for the next cache miss less than 5 seconds later as the audio file is re-used.
Is there something that we are missing from what you can tell on either the server side or within our code?
Thanks!
We are having problems with our audio files never being cached, resulting in excessive traffic to our web servers. We have tried manipulating the HTTP headers that come back on an audio request. Following is an example of the returned headers:
Code: Select all
curl -I http://<hostname>/GetAudio/agent511_demo/Y.wav
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: public, max-age=1000
Expires: Wed, 22 Jun 2011 18:52:20 GMT
Last-Modified: Thu, 16 Jun 2011 20:40:18 GMT
Content-Type: audio/x-wav
Content-Length: 6104
Date: Wed, 22 Jun 2011 18:35:40 GMT
Code: Select all
<property name="audiomaxage" value="604800s"/>
<property name="audiomaxstale" value="25s"/>
Code: Select all
<audio expr="AudioUrl + 'For.wav'" maxage="1000s">For</audio>
Even with the audio tags explicitly stating the maxage, our logs still show:
Code: Select all
Cache Miss: http://<hostname>/GetAudio/agent511_demo/For.wav
Attempting to fetch http://<hostname>/GetAudio/agent511_demo/For.wav
Audio segment from the URL http://<hostname>/GetAudio/agent511_demo/For.wav added to prompt queue
Is there something that we are missing from what you can tell on either the server side or within our code?
Thanks!