added cache-buster to template xhr urls -- closed #1392

This commit is contained in:
Julian Lam
2014-04-16 20:19:26 -04:00
parent 7c00bce63c
commit 126260a027
2 changed files with 2 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ apiController.getConfig = function(req, res, next) {
config.defaultLang = meta.config.defaultLang || 'en_GB';
config.environment = process.env.NODE_ENV;
config.isLoggedIn = !!req.user;
config['cache-buster'] = meta.config['cache-buster'] || '';
if (!req.user) {
if (res.locals.isAPI) {