Corona and cached files

Hey guys,

Does anyone have any knowledge or experience regarding cached files in Corona?  I am having issues in the Simulator especially with any files that I download into my apps Documents folder.  I download a JSON file with some configuration settings for my app.  I update the file and re-download it to my app, but it keeps the old settings.  If I build to device then usually it does get the latest up to date file.

Just wondering if anything can be done to be sure that these type of downloaded files are never cached, because I need them to always have the latest and correct copy of this JSON file.  It also makes it a big pain to test in the Simulator because the Simulator never gets the updated JSON file, so I have to build to device to test any changes.

Any thoughts, comments, or knowledge on the subject would be appreciated.

All I can say is that the same happens to me.  My current project downloads sqlite files from a server but in the simulator the old version keep showing up.  I spent about 4 hours the other day trying to find the cached files, but had no luck.  

All I can say is that the same happens to me.  My current project downloads sqlite files from a server but in the simulator the old version keep showing up.  I spent about 4 hours the other day trying to find the cached files, but had no luck.  

Quick update on this, even though its very old.  I found this post by Rob that suggest appending to the end of your network request URL.  I haven’t tested it much yet but I think it is going to work so you don’t get cached files.

http://forums.coronalabs.com/topic/27167-networkdownload-downlading-from-cachedb/

Quick update on this, even though its very old.  I found this post by Rob that suggest appending to the end of your network request URL.  I haven’t tested it much yet but I think it is going to work so you don’t get cached files.

http://forums.coronalabs.com/topic/27167-networkdownload-downlading-from-cachedb/