From eae828ccc6cece9501fc2a6f123aef98b2b60a8c Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 8 Sep 2017 12:10:57 +0800 Subject: [PATCH] remove condition due to 'this.options.dev' is always false Signed-off-by: Clark Du --- lib/core/renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/renderer.js b/lib/core/renderer.js index 9a8bed02ea..d61a58c7c2 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -243,7 +243,7 @@ export default class Renderer extends Tapable { path: this.publicPath, handler: serveStatic(distDir, { index: false, // Don't serve index.html template - maxAge: (this.options.dev ? 0 : '1y') // 1 year in production + maxAge: '1y' // 1 year in production }) }) }