I get xml file from server with function ( JQuery )
function load_config_xml(){
$.ajax({
url: 'config/conf.xml',
dataType: "xml",
success:parse_xml,
error: function(){
alert("Error during loading xml file");
}
});
}
but it doesn’t return fresh results, lighttpd caches. How to change request to avoid cached results ?
Simplest workaround is to explicitly use a
POSTrequest. A browser will not cache those:jQuery also offers the option
cachewhich you can set tofalse. That creates the some outcome:Basically jQuery will just modify the query string for each request, which of course you could do on your own aswell: