CJ'ai trouvé!
C'etait du au cache, voila ma fonction qui fonctionne:
function file(fichier)
{
xhr_object = getXMLHTTP();
xhr_object.open("GET", fichier + "&nocache=" + Math.random(), false);
xhr_object.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
xhr_object.send(null);
if(xhr_object.readyState == 4) return(xhr_object.responseText);
}
C'est donc le parametre nocache qui permet ca.
Je vidais pourtant le cache grace aux header php mais ce n'etait pas suffisant apparemment!