GET Status 0 on local page load with Cordova

GET Status 0 on local page load with Cordova

I am using jqm with Cordova. When a local page loads jqm uses GET but returns the content along with a status of 0. This is seen in the logging app I am using as an error (it was expecting a status = 200 for a GET).

I saw this item in the docs but it did not make any difference:

  1. $.ajaxPrefilter( function(options, originalOptions, jqXHR) {
  2. if ( applicationCache &&
  3. applicationCache.status != applicationCache.UNCACHED &&
  4. applicationCache.status != applicationCache.OBSOLETE ) {
  5. // the important bit
  6. options.isLocal = true;
  7. }
  8. });
Any thoughts on how I can avoid these status == 0 from the local page loads using Cordova?