mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -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 {
|
} else {
|
||||||
express.static(
|
express.static(
|
||||||
path.join(config.getContentPath('themes'), req.app.get('activeTheme')),
|
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);
|
)(req, res, next);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue