only force reload in debug mode, use version otherwise
This commit is contained in:
parent
7f78b8569c
commit
e1d71b27bc
2 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
loadScriptsSerial(data.files, function() {
|
||||
Ox.LOCALES = data.locales;
|
||||
Ox.VERSION = data.version;
|
||||
Ox.DEBUG = true;
|
||||
Ox.forEach(previousOx, function(value, key) {
|
||||
if (Ox.isUndefined(Ox[key])) {
|
||||
Ox[key] = value;
|
||||
|
|
|
@ -113,7 +113,7 @@ Ox.getFile = (function() {
|
|||
);
|
||||
element[
|
||||
type == 'css' ? 'href' : 'src'
|
||||
] = file + '?' + Ox.random(1000000);
|
||||
] = file + '?' + (Ox.DEBUG ? Ox.random(1000000) : Ox.VERSION);
|
||||
element.type = type == 'css' ? 'text/css' : 'text/javascript';
|
||||
if (type == 'css') {
|
||||
element.rel = 'stylesheet';
|
||||
|
|
Loading…
Reference in a new issue