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

HTTP Cache Problem

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
vbatista
Posts: 3
Joined: Fri Mar 26, 2004 8:21 pm

HTTP Cache Problem

Post by vbatista »

Hi!
We are developing a demo which uses several wav files. We are setting a cache time in some of those wav files, but your VXML Browser seems to be ignoring them. Each time we access one of those files, a request is made to our web server. We are adding the headers "Date" and "Expires". Below is an example:

Date: Tue, 25 Jan 2005 12:13:35 GMT
Expires: Tue, 25 Jan 2005 12:23:35 GMT

We tested access to one of this files with Firefox and IE and they are "respecting" our headers.....they only make the first request to the web server, as long as the Expires date hasn't been achieved!

Regards,
Victor Batista

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

caching feature of the Plum IVR operates like a proxy cache

Post by support »

Hello,

The caching feature of the Plum IVR operates like a proxy cache. This is enabled by default for developers using Plum IVR Hosting. However, you must enable this feature for on-site Plum IVR systems or nothing will be cached. For more information on how to enable this please see the Operations Documentation that comes with your Plum IVR. If you are running the Plum IVR Evaluation sofware caching is not available, this is because caching requires disk space and the evaluation software runs off a bootable cd that is not designed to write to disk.

Hope This Helps!

Plum Support
Last edited by support on Thu Feb 25, 2010 2:26 pm, edited 3 times in total.

tcharron
Posts: 3
Joined: Wed Jan 25, 2006 8:49 pm

Post by tcharron »

I noticed many times, files are cached while other files are not. whenever the file retrieves a file via a GET, it seems to cache it locally.

Is there a way to clear out the cache that's being used by the hosted environment?

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

IVR follows standard proxy caching rules

Post by support »

Hello,

The Plum IVR caching system follows standard proxy caching rules. To force the file to be refetched you should use the maxage attribute for that element. For an IVR example:

Code: Select all

<?xml version="1.0"?>
<vxml version="2.0">
<form>
	<block>
		<prompt>
			<audio src="somefile.wav" maxage="0"/>
		</prompt>
	</block>
</form>
</vxml>
This will force somefile.wav to be refetched every time. You can also make use of the IVR global properties *maxage to set the attribute globally.

Regards,
Plum Support

Post Reply