This commit is contained in:
Julian Lam
2014-02-13 12:26:43 -05:00
parent 3e3250ccde
commit e2c6eca36e
2 changed files with 4 additions and 1 deletions

View File

@@ -178,7 +178,9 @@ module.exports.server = server;
meta.config['cache-buster'] = stdOut.trim();
// winston.info('[init] Cache buster value set to: ' + stdOut);
} else {
winston.warn('[init] Cache buster not set');
fs.stat(path.join(__dirname, '../package.json'), function(err, stats) {
meta.config['cache-buster'] = new Date(stats.mtime).getTime();
});
}
});
}