mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
remove condition due to 'this.options.dev' is always false
Signed-off-by: Clark Du <clark.duxin@gmail.com>
This commit is contained in:
parent
1e0c807341
commit
eae828ccc6
@ -243,7 +243,7 @@ export default class Renderer extends Tapable {
|
|||||||
path: this.publicPath,
|
path: this.publicPath,
|
||||||
handler: serveStatic(distDir, {
|
handler: serveStatic(distDir, {
|
||||||
index: false, // Don't serve index.html template
|
index: false, // Don't serve index.html template
|
||||||
maxAge: (this.options.dev ? 0 : '1y') // 1 year in production
|
maxAge: '1y' // 1 year in production
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user