cache control issues
Posted: Thu Feb 23, 2006 9:44 am
I had a small issue that deals wioth the caching of the app root document for an IVR application. Below is an example of the VoiceXML welcome message:
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" application="app.vxml">
<form>
<block>
<prompt><voice name="julia">Welcome to the test Application.</voice></prompt>
<assign name="ANI" expr="session.telephone.ani"/>
<submit next="ControllerServlet" namelist="ANI"/>
</block>
</form>
</vxml>
And the corresponding app.vxml:
<?xml version="1.0"?>
<vxml version="2.0">
<var name="ANI"/>
<var name="Action"/>
<property name="maxspeechtimeout" value="300s"/>
<property name="documentmaxage" value="0"/>
<property name="scriptmaxage" value="0"/>
<property name="interdigittimeout" value="2s"/>
<property name="sensitivity" value="0.65"/>
<property name="bargeintype" value="hotword"/>
<!-- handle all error events -->
<error>
APP ERROR!!! <value expr="_event"/>
Sorry, there was a problem processing your request.
Please try again later.
<disconnect/>
</error>
<catch event="connection.disconnect.hangup">
<assign name="Action" expr="'Logout'"/>
<submit next="ControllerServlet" namelist="Action"/>
</catch>
<link expr="'ControllerServlet?Action=Main'">
<grammar type="application/srgs+xml" root="optmain">
<rule id="optmain">
<one-of>
<item>main</item>
<item>88</item>
</one-of>
</rule>
</grammar>
</link>
<link expr="'ControllerServlet?Action=Forums'">
<grammar type="application/srgs+xml" root="optforum">
<rule id="optforum">
<one-of>
<item>forums</item>
</one-of>
</rule>
</grammar>
</link>
<link expr="'logout.jsp'">
<grammar type="application/srgs+xml" root="optlogout">
<rule id="optlogout">
<one-of>
<item>logout</item>
<item>exit</item>
</one-of>
</rule>
</grammar>
</link>
</vxml>
The application document *ALWAYS* get's cached. I would prefer, specifically during development, that *NOTHING* be cached, but there seems to be no way to actually accomplish this, as once it's loaded, it doesn't seem to respect it's own property!
<?xml version="1.0" encoding="UTF-8"?>
<vxml version="2.0" application="app.vxml">
<form>
<block>
<prompt><voice name="julia">Welcome to the test Application.</voice></prompt>
<assign name="ANI" expr="session.telephone.ani"/>
<submit next="ControllerServlet" namelist="ANI"/>
</block>
</form>
</vxml>
And the corresponding app.vxml:
<?xml version="1.0"?>
<vxml version="2.0">
<var name="ANI"/>
<var name="Action"/>
<property name="maxspeechtimeout" value="300s"/>
<property name="documentmaxage" value="0"/>
<property name="scriptmaxage" value="0"/>
<property name="interdigittimeout" value="2s"/>
<property name="sensitivity" value="0.65"/>
<property name="bargeintype" value="hotword"/>
<!-- handle all error events -->
<error>
APP ERROR!!! <value expr="_event"/>
Sorry, there was a problem processing your request.
Please try again later.
<disconnect/>
</error>
<catch event="connection.disconnect.hangup">
<assign name="Action" expr="'Logout'"/>
<submit next="ControllerServlet" namelist="Action"/>
</catch>
<link expr="'ControllerServlet?Action=Main'">
<grammar type="application/srgs+xml" root="optmain">
<rule id="optmain">
<one-of>
<item>main</item>
<item>88</item>
</one-of>
</rule>
</grammar>
</link>
<link expr="'ControllerServlet?Action=Forums'">
<grammar type="application/srgs+xml" root="optforum">
<rule id="optforum">
<one-of>
<item>forums</item>
</one-of>
</rule>
</grammar>
</link>
<link expr="'logout.jsp'">
<grammar type="application/srgs+xml" root="optlogout">
<rule id="optlogout">
<one-of>
<item>logout</item>
<item>exit</item>
</one-of>
</rule>
</grammar>
</link>
</vxml>
The application document *ALWAYS* get's cached. I would prefer, specifically during development, that *NOTHING* be cached, but there seems to be no way to actually accomplish this, as once it's loaded, it doesn't seem to respect it's own property!