Maxage

maxage

in

The maxage attribute relates to the maximum amount of time a file will be cached. The tags that have the maxage attribute are <audio/>, <choice/>, <data/>, <goto/>, <grammar/>, <link/>, <script/>, <subdialog/>, and <submit/>. The type of file cached depends upon the tag that is being used to pull the cached file.

By setting a specific maxage within a tag it will force the caching mechanism to either get (or not depending on the timeframe set) a new version of the file. This will allow for a faster response time in pulling the files that are required.

There are also several properties that achieve the same goal as the maxage attribute. These properties are audiomaxage, datamaxage, documentmaxage, grammarmaxage, and scriptmaxage. Notice that <choice/>, <goto/>, <link/>, <subdialog/>, and <submit/> do not have a corresponding *maxage property. This is because they fall inclusively under the documentmaxage, since all of these elements transition between documents. Using these properties will offer a global default setting that can be selectively overridden with maxage attributes on specific elements.

Related links

Search Glossary

Term of the Day

The disconnect element is used to disconnect a specific call leg in a VoiceXML document.