-
Sencha Premium Member
AjaxProxy fails to load data when offline ad cached - is there a work around
I'm using the html 5 cache to go offline with my Sencha Touch app.
Sencha mostly works fine - but I have found that The AjaxProxy fails reading cached json files when the server is offline even though these are specified in the cache.manfiest.
I know the HTML5 cache works with the ajax calls made with the standard XMLHttp object - but the http response codes in the callbacks are a bit dodgy.
Is there a work around for this? - is this a bug?
Any help or advice would be greatly appreciated.
regards
Tom
-
Sencha User
Hi there,
May be this should throw some light to you.
http://www.sencha.com/learn/taking-s...-apps-offline/
-
Sencha Premium Member
Specifically AjaxProxy in Sencha 2 loading from cached manifest
Thanks blakdronzer for your suggestions. I am already using local storage succesfully for offline apps.
In this particular instance i can't use the local storage as the data is already in a json file.
My question is specifically how to get AjaxProxy loading from the HTML5 cache.
regards
Tom
-
Sencha Premium Member
Solved
Doh! its so simple - just add the noCache:false parameter to your proxy config et walla!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules