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
<?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>
datatag.xml
<?xml version="1.0"?>
<tagname>
World
</tagname>

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