> For the complete documentation index, see [llms.txt](https://docs.plumvoice.com/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.plumvoice.com/dev/voicexml/properties/datamaxage.md).

# datamaxage

## datamaxage <a href="#datamaxage" id="datamaxage"></a>

**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**

{% tabs %}
{% tab title="data.vxml" %}

```markup
<?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>
```

{% endtab %}

{% tab title="datatag.xml" %}

```markup
<?xml version="1.0"?>
<tagname>
World
</tagname>
```

{% endtab %}
{% endtabs %}

### 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
