cache-control.max-stale

Use only cached data that has exceeded its expiration time by up to the specified number of seconds.

Value

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

If no value is assigned to max-stale, the server may use stale data of any age.

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 maxstale attribute of an <audio> element.

In the browser, using the Cache-Control:max-stale 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).