diff --git a/app.js b/app.js index 8def56e..4b9eb6e 100644 --- a/app.js +++ b/app.js @@ -32,7 +32,7 @@ global.syzoj = { }); // Set assets dir - app.use(Express.static(__dirname + '/static', { maxage: '1y' })); + app.use(Express.static(__dirname + '/static', { maxAge: syzoj.production ? '1y' : 0 })); // Set template engine ejs app.set('view engine', 'ejs');