cache-control.max-age

Use only cached data whose age is no greater than the specified time in seconds.

Value

Integer: 0–INT_MAX (seconds), or -1 to disable (use normal caching).

DEFAULT: -1 (use no default)

How to set

In the application’s session xml, in the <speechsynth> of the <speechserver> section under <sessionparameters>.

In a VoiceXML application, using the maxage attribute.

In the browser, using the Cache-Control:max-age header in a RECOGNIZE, DEFINE-GRAMMAR, SPEAK, or LOAD-LEXICON method.

For the recognizer—In the application’s session.xml, in the <speechrecog> section of <speechserver> under <sessionparameters>.

For the synthesizer—In the application’s session.xml in the <speechsynth> section of <speechserver> under <sessionparameters>.

For the recorder—In the application’s session.xml, in the <speechrecord> section of <speechserver> under <sessionparameters>.

Usage

Seldom used.

Sets a session default for the corresponding MRCP header. The value -1 ignores any default max-age/max-stale value (and Speech Server does not set the max-age/max-stale value in its cache requests).