scriptmaxage

scriptmaxage

Default Value: NULL

Tells the platform the maximum acceptable age, in seconds, of cached scripts. Setting “scriptmaxage” to NULL allows the platform to honor expiration time set by the web server.

Example

<?xml version="1.0"?>
<vxml version="2.0">
  <property name="scriptmaxage" value="150s"/>
  <property name="scriptmaxstale" value="25s"/>
  <form>
    <script src="script.php"/>
  </form>
</vxml>

Explanation

From this example, the “scriptmaxage” value is set to 150 seconds and the “scriptmaxstale” value is set to 25 seconds. This sets a global property that all script tags have a maxage value of 150 seconds and a maxstale value of 25 seconds. So, since the file “script.php” is inside of a <script> tag, it would have a maxage value of 150 seconds and a maxstale value of 25 seconds because of the “scriptmaxage” and “scriptmaxstale” properties.

Notes

None

Last updated