Plum DEV Documentation
voicexml:properties:datamaxage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

voicexml:properties:datamaxage [2014/06/02 14:24]
jennifer added meta description
voicexml:properties:datamaxage [2019/09/17 12:29]
Line 1: Line 1:
-{{description>​datamaxage VoiceXML property details | datamaxage tells the vxml platform the maximum age for cached data documents.}} 
-=====datamaxage===== 
- 
-**Default Value:** NULL 
- 
-Tells the platform the maximum acceptable age, in seconds, of cached data documents. Setting "​datamaxage"​ to NULL allows the platform to honor expiration time set by the web server. 
- 
-====Example==== 
-**data.vxml** 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<vxml version="​2.0">​ 
- 
-<​property name="​datamaxage"​ value="​150s"/>​ 
-<​property name="​datamaxstale"​ value="​25s"/>​ 
- 
-<​form>​ 
-  <data name="​domstuff"​ src="​datatag.xml"/>​ 
-  <​block>​ 
-    Hello <value expr="​domstuff.documentElement.firstChild.toString()"/>​. 
-  </​block>​ 
-</​form>​ 
-</​vxml>​ 
-</​code>​ 
- 
-**datatag.xml** 
-<​code>​ 
-<?xml version="​1.0"?>​ 
-<​tagname>​ 
-World 
-</​tagname>​ 
-</​code>​ 
- 
-====Explanation==== 
- 
-From this example, the "​datamaxage"​ value is set to 150 seconds and the "​datamaxstale"​ value is set to 25 seconds. This sets a global property that all data documents referenced within the application have a maxage value of 150 seconds and a maxstale value of 25 seconds. So, since the file "​datatag.xml"​ is inside of a tag, it would have a maxage value of 150 seconds and a maxstale value of 25 seconds because of the "​datamaxage"​ and "​datamaxstale"​ properties. 
- 
-====Notes==== 
- 
-None 
-