mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
refs #7812 - replaced hard-coded maxAge value in static-theme middleware with dynamic value based on env
This commit is contained in:
parent
2d19ae2c6c
commit
ada528d386
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue