I’ve noticed that when using network.request there isn’t any local caching of requests on Android. Is this an expected behavior?
I have an API endpoint (HTTPS) that returns a Last-Modified date in the response header. On iOS (and the iOS and corona simulator) I can see subsequent requests sending the If-Modified-Since header allowing my endpoint to respond with a 304 (Not modified) response.
network.request itself will return a status of 200 (which is fine) for either the 200 or 304 response codes.
On android it doesn’t appear to cache any responses and never sends back the If-Modified-Since header. Am I correct that your Android implementation of network.request does not have a caching layer?
It looks like Android didn’t provide this service until 4.0 - http://developer.android.com/training/efficient-downloads/redundant_redundant.html#ResponseCache