added cache buster to require.js files - fixes #687

This commit is contained in:
Julian Lam
2013-12-26 15:58:46 -05:00
parent 6ad28dadd4
commit d8183c056c
2 changed files with 5 additions and 9 deletions

View File

@@ -99,7 +99,7 @@ var path = require('path'),
link_tags: linkTags,
clientScripts: clientScripts,
navigation: custom_header.navigation,
'cache-buster': meta.config['cache-buster'] ? '?v=' + meta.config['cache-buster'] : '',
'cache-buster': meta.config['cache-buster'] ? 'v=' + meta.config['cache-buster'] : '',
allowRegistration: meta.config.allowRegistration === undefined || parseInt(meta.config.allowRegistration, 10) === 1
};
@@ -132,14 +132,9 @@ var path = require('path'),
}, function(err, stdOut) {
if (!err) {
meta.config['cache-buster'] = stdOut.trim();
if (global.env === 'development') {
winston.info('[init] Cache buster value set to: ' + stdOut);
}
// winston.info('[init] Cache buster value set to: ' + stdOut);
} else {
if (global.env === 'development') {
winston.warn('[init] Cache buster not set');
}
winston.warn('[init] Cache buster not set');
}
});
}