"net::ERR_CACHE_MISS" when loading an external URL in Cordova

PressRex profile image
by PressRex
"net::ERR_CACHE_MISS" when loading an external URL in Cordova

I am getting crazy about this. I have a pretty basic Cordova (3.5.0) app and want to load an external URL. The only thing I am doing is loading jQuery (locally) and executing this on button click:

$.ajax({
  dataType:'html',
  url:'http://www.google.com',
  success:function(data) {
    $('#ajax').html($(data).children());   
  }
});

Everytime on loading my app fires this error:

GET http://www.google.com/ net::ERR_CACHE_MISS    jquery.min.js:4
send                                              jquery.min.js:4
m.extend.ajax                                     jquery.min.js:4
(anonymous function)                              index.html:68
m.event.dispatch                                  jquery.min.js:3
r.handle                                          jquery.min.js:3

All permissions are properly set in the AndroidManifest.xml

<uses-permission android:name="android.permissions.INTERNET" />
<uses-permission android:name="android.permissions.NETWORK_ACCESS" />
<uses-permission android:name="android.permissions.ACCESS_NETWORK_STATE" />

Does anyone of you had a similar issue? What does net::ERR_CACHE_MISS means?

Source: View source

PressRex profile image
by PressRex

Subscribe to New Posts

Lorem ultrices malesuada sapien amet pulvinar quis. Feugiat etiam ullamcorper pharetra vitae nibh enim vel.

Success! Now Check Your Email

To complete Subscribe, click the confirmation link in your inbox. If it doesn’t arrive within 3 minutes, check your spam folder.

Ok, Thanks

Read More