diff --git a/core/server/middleware/static-theme.js b/core/server/middleware/static-theme.js index e79d33d381..5fb5256628 100644 --- a/core/server/middleware/static-theme.js +++ b/core/server/middleware/static-theme.js @@ -22,7 +22,7 @@ function forwardToExpressStatic(req, res, next) { } else { express.static( path.join(config.getContentPath('themes'), req.app.get('activeTheme')), - {maxAge: utils.ONE_YEAR_MS} + {maxAge: config.get('env') === 'development' ? 0 : utils.ONE_YEAR_MS} )(req, res, next); } }