views:

161

answers:

1

Does DWR support method calls with GET? So I can use http caching to cache the result of the call... Is that possible?

A: 

It seems it does support that since engine.js in DWR 2.x has an option "httpMethod" with which you can specify GET; from the docs:

Selects use of GET or POST. Called 'verb' in 1.x, likely to be removed in version 3.0

The options can be set globally or at a call level. I haven't used that option myself, though. (And it is marked as deprecated.)

(About caching, I'm not sure. All I quickly found was this page which talks about caching engine.js and the scripts generated by DWR.)

Jonik