PDA

View Full Version : Appcache causes my Ajax requests to fail



MrBeef
10 May 2012, 7:52 AM
Hi everyone,

I have a Sencha Touch 2 app that's working fine. It has a login screen, then a few Ajax calls occur to load data within the app.

When I add a cache manifest file into the mix (see below), I can log in to my app successfully (meaning the call to login.php works), but then my other Ajax requests fail. In addition, I have an Ext.map which does not load either.

This may not be a Sencha problem at all but I'm stumped. Any suggestions on what to check? Thanks!



CACHE MANIFEST
#5/10/2012
index.html
app.js
sencha-touch-2.0.1/sencha-touch-all.js
sencha-touch-2.0.1/resources/css/sencha-touch.css
images/alert.png
images/check.png
images/marker_purple.png

MrBeef
10 May 2012, 5:29 PM
It took some major digging -- but it seems like adding this to the cache manifest file does the trick (allows the browser to go to the network for any non-cached resources):



NETWORK:
*