Thank you for your answer.
I found a solution for Firefox (using about:config), but I think it's an equivalent to your solution.
browser.cache.disk.enable false
browser.cache.memory.enable false
ubrowser.cache.offline.enable false
network.http.use-cache false
I am still looking for a solution for chrome, but it's not so important.
An other option is tu set cache = false for
jquery ajax for developpement.
define(['lib/jquery/jquery.tmpl'], function () {
$.fn.render = function( url, data, options, parentItem ) {
var element = this[0];
$(element).empty();
// Synchronous get to block caller until the template is rendered.
$.ajax({
url: url,
async: false,
cache: false,
success: function(template) {
$.tmpl(template, data, options, parentItem).appendTo(element);
}
});
};
});
No errors occurs, It just that I can not refresh my browser when I change some html files (no problem with js).
But it's a normal behaviour because the cache is false for script and jsonp, so it means that cache is true for html.
Default: true, false for dataType 'script' and 'jsonp'
If set to false, it will force requested pages not to be cached by the browser.
For now I stay with my customed Firefox.
If I struggle with the other browsers (chrome, and IE for multi browser test), I will try with the cache params.
Thank you
Romain