Jquery | Load cached xml file

Hi all,

I have html/jquery based web app that loads data from an xml file upon document ready.
I also have a manifest.appacache that should cache the xml file. When i try running the app offline the xml will not load.

Where am I going wrong? This code is taken from inside an object (hence the methods & private_methods)

loadXML : function( ) {
     var XML_url = "details.xml";
     var isOnline = navigator.onLine;			
     if(isOnline)XML_url+="?"+Math.random();

     $.ajax({
          type: "GET",
          url: XML_url,
          dataType: "xml",
          success: private_methods.parseXml
     });	
}
methods.loadXML.apply()

Hi,
Maybe the problem is not from JS code, but from browser that not caches the xml file.
Not know the solution, but look on the net for “browser cache xml file”.