Skip to content Skip to sidebar Skip to footer

Appcache With Phonegap And Jquery Mobile

I recently set my appname.appcache contents to this:CACHE MANIFEST # 2010-02-10 v1 CACHE: index.html test1.html test2.html # many more project root html files #stylesheets css/ma

Solution 1:

I had also get the same error, but in my case it was due to the fact that i was running my file on http and caching resources which were on https therefore not on the same origin. If you have that kind of issue you can look into it.


Solution 2:

Not really an answer but thanks for pointing me in the right direction in solving my own problem. (posted here in case it ever helps someone with a similar issue - I tried adding just a comment but the text is too long)

I'd been using a cache manifest for the web version of an app I'm building but hadn't considered it for the PhoneGap build. When you ask "does appCache improve performance for application built with phonegap?" for me at least, the resounding answer is a big yes.

I'm using magnificPopup loading ajax type pop-ups, all worked fine (even when the phone/device is offline) except for when the popup content includes a RoyalSlider gallery - these successfully load the ajax content (I can tell thanks to magnificPopup's very useful ajax callbacks) but they don't go on to add this to the DOM. I still have no idea exactly why that is, I'm guessing the problem is somewhere in RoyalSlider's code, perhaps looking for a resource it considers to be online? But anyways, implementing a cache manifest has completely solved the problem for me. Thanks.


Post a Comment for "Appcache With Phonegap And Jquery Mobile"