Can you please try to use HTML5 offline cache.
in this case we're trying to have an ajax request cached for more or less one hour.
Implementing this with HTML application caching seems overkill and more error-proof that using the browser caching.
I've logged the HTTP traffic from RhoElements (Shared Runtime or native apps makes no difference) and from Chrome, and there're no differences from the Tomcat server.
Simply the motorola webkit browser ignore the cache setting:
GET /testCache/resources/test/cached HTTP/1.1
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (MotorolaWebKit; U; /Windows CE 5.2) AppleWebKit/534.51 (KHTML, like Gecko) Version/220.127.116.11 Mobile Safari/534.51
HTTP/1.1 200 OK
Cache-Control: no-transform, max-age=3600
Date: Wed, 24 Jul 2013 22:16:27 GMT
Hello world! Timestamp: 2013-07-24 22:16:27.498
1 of 1 people found this helpful
I guess Cache-Control is really ignored by motorola webkit browser and it looks like there are no ways to force browser to respect this header. I not sure it can be considered as a browser issue because nowhere stated it should use cached content in case of Cache-Control has been set properly. It just may be used.
IMHO it's quite uncommon XMLHttpRequest use case in your app. Typical cache control task with XMLHttpRequest is to disable cache for AJAX and it is a reverse task.
It shouldn't be a problem for AJAX request to reach server each time if response generation isn't resource/time consuming operation. In case it is resource or time consuming operation then you may implement server-side caching as a workaround.
Hope it helps,
Engineering will take a look at this. Thank you.