Rename cache bust argument to __CACHE_BUST__

Since migration to Gulp, commit SHA is not used to bust cache.
Instead we use current date. So we need to rename argument name
accordingly to avoid confusion.

Change-Id: I33b31d69231fefff9f455d2dbbeca0230ca8dccc
This commit is contained in:
Vitaly Kramskikh 2015-04-03 17:01:00 +03:00
parent 0ceaf226b1
commit bdad993607
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ gulp.task('rjs', function() {
.pipe(replace(/jsx!/g, ''))
.pipe(jsFilter.restore())
.pipe(indexFilter)
.pipe(replace('__COMMIT_SHA__', Date.now()))
.pipe(replace('__CACHE_BUST__', Date.now()))
.pipe(indexFilter.restore())
.pipe(intermediate({output: '_build'}, function(tempDir, cb) {
var configFile = path.join(tempDir, 'build.json');

View File

@ -36,7 +36,7 @@
}());
if (hasCookies && hasStorage) {
requirejs.config({baseUrl: '/static/js', urlArgs: '_=__COMMIT_SHA__'});
requirejs.config({baseUrl: '/static/js', urlArgs: '_=__CACHE_BUST__'});
requirejs(['main']);
} else {
document.write('Fuel UI requires Cookies and LocalStorage to work.');