Is it possible to clear the cache of a network.request response?
(so that if I call the network.request for a given URL a second time, it re-downloads the data, which may have been updated already, instead of grabbing it from cache) [import]uid: 33608 topic_id: 20496 reply_id: 320496[/import]
+1 on this. [import]uid: 14018 topic_id: 20496 reply_id: 80443[/import]
I’m not certain on this but will try to find out for you
[import]uid: 52491 topic_id: 20496 reply_id: 80565[/import]
have you tried adding a random variable at the end of the url string?
[import]uid: 6459 topic_id: 20496 reply_id: 80573[/import]
@tetu, I tried that before, don’t remember exactly why it didn’t work but it messed things up on the device… It worked fine on the simulator but not on device… [import]uid: 14018 topic_id: 20496 reply_id: 80595[/import]
Corona doesn’t do any caching but the OS may. We don’t expose any APIs to clear the cache (or know if there is way to clear the cache). [import]uid: 7559 topic_id: 20496 reply_id: 80690[/import]
mydata.xml?a=timestamp will return the latest version of the xml file
the web server has to do a new file search because timestamp was different a second ago
[import]uid: 6459 topic_id: 20496 reply_id: 80724[/import]
Other alternatives is to use http headers to deal with modified files…
https://devcenter.heroku.com/articles/ios-network-caching-http-headers
Other alternatives is to use http headers to deal with modified files…
https://devcenter.heroku.com/articles/ios-network-caching-http-headers