Application saves old data


#1

I`m building an app that every time I run it its supposed to download different information from the internet.
The problem is that if I dont kill it manuly from memory the next execution will run with old data, I have tried clearing the folder which contains the data from the web with the folowing code before exiting and on execution to no affect

var temp = fs.knownFolders.temp();
    temp.clear().then(function(){
        process.exit();
 });

Help will be appreciated


#2

@Shlomo Can you tell us more on,
In which file and method, are you making a call to download data from the internet?