Browse Source

Fix wrong maxAge of static resources

master
Menci 6 years ago
parent
commit
d4395027a7
  1. 2
      app.js

2
app.js

@ -32,7 +32,7 @@ global.syzoj = {
}); });
// Set assets dir // 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 // Set template engine ejs
app.set('view engine', 'ejs'); app.set('view engine', 'ejs');

Loading…
Cancel
Save