mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
added cache-buster to template xhr urls -- closed #1392
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user