From cf3a0118c9a4e009a129d5d84dda8e6c61054b08 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Fri, 29 Sep 2017 12:39:18 +0200 Subject: [PATCH] fix typo --- website/server/middlewares/static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/server/middlewares/static.js b/website/server/middlewares/static.js index 8191c3a715..5623ce6993 100644 --- a/website/server/middlewares/static.js +++ b/website/server/middlewares/static.js @@ -4,7 +4,7 @@ import path from 'path'; const IS_PROD = nconf.get('IS_PROD'); // const IS_NEW_CLIENT_ENABLED = nconf.get('NEW_CLIENT_ENABLED') === 'true'; -const MAX_AGE = true ? 31536000000 : 0; +const MAX_AGE = IS_PROD ? 31536000000 : 0; const ASSETS_DIR = path.join(__dirname, '/../../assets'); const PUBLIC_DIR = path.join(__dirname, '/../../client-old'); // TODO static files are still there const BUILD_DIR = path.join(__dirname, '/../../build');