responding to xforms:submission with HTTP 304?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

responding to xforms:submission with HTTP 304?

Adrian Baker
I have a form which will use Javascript to poll a serlvet & regularly update an instance via an xforms:submission.

Most of the time the instance won't actually change.

If my servlet responds with a 304 (not modified), will Orbeon interpret this as meaning the instance is unchanged? (A glance at the code indicates not).

Adrian


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: responding to xforms:submission with HTTP 304?

Erik Bruchez
Administrator
Adrian,

Right, this is not supported at all ;-)

Note that for this to work, the client (i.e. XForms engine) would also
need to issue a conditional GET first, with an if-modified-since header.
It would also need to store the last date the instance was loaded. So
it's a little involved, but it sounds like a good idea.

-Erik

Adrian Baker wrote:

> I have a form which will use Javascript to poll a serlvet & regularly
> update an instance via an xforms:submission.
>
> Most of the time the instance won't actually change.
>
> If my servlet responds with a 304 (not modified), will Orbeon interpret
> this as meaning the instance is unchanged? (A glance at the code
> indicates not).
>
> Adrian
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws