mediademon
23 Oct 2012, 3:23 AM
Scenario:
I have an app that loads a store into a nested list when it loads. This works fine when you first run the app, however...
The Problem:
When you close the app completely (not just pause) and re-open it, the nested list is blank. I'm assuming....this is because the phone/app is caching the data it got via the proxy in the store then failing to reload it.
Additional:
I have a pull-down refresh set up as well, and if you do this on the blank list it reloads fine, but I don't want people to have to do this.
I have tried adding these:
Ext.data.Connection.disableCaching = true;Ext.data.JsonP.disableCaching = true;
Ext.data.proxy.Server.prototype.noCache = true;
Ext.Ajax.disableCaching = true;
To the launch function in app.js but it didn't help.
Advice would be appreciated.
Many thanks!
P.S Doesn't happen on the iOS version of the app.
I have an app that loads a store into a nested list when it loads. This works fine when you first run the app, however...
The Problem:
When you close the app completely (not just pause) and re-open it, the nested list is blank. I'm assuming....this is because the phone/app is caching the data it got via the proxy in the store then failing to reload it.
Additional:
I have a pull-down refresh set up as well, and if you do this on the blank list it reloads fine, but I don't want people to have to do this.
I have tried adding these:
Ext.data.Connection.disableCaching = true;Ext.data.JsonP.disableCaching = true;
Ext.data.proxy.Server.prototype.noCache = true;
Ext.Ajax.disableCaching = true;
To the launch function in app.js but it didn't help.
Advice would be appreciated.
Many thanks!
P.S Doesn't happen on the iOS version of the app.