We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
express.static()
maxAge
1 parent 81c62e5 commit c5f9a65Copy full SHA for c5f9a65
server.js
@@ -55,7 +55,7 @@ if (isProd) {
55
}
56
57
const serve = (path, cache) => express.static(resolve(path), {
58
- maxAge: cache && isProd ? 60 * 60 * 24 * 30 : 0
+ maxAge: cache && isProd ? 1000 * 60 * 60 * 24 * 30 : 0
59
})
60
61
app.use(compression({ threshold: 0 }))
0 commit comments