add express caching middleware

This commit is contained in:
Michael Q Larson
2015-03-07 02:00:21 -08:00
parent 61435283d0
commit 1180a3132c

2
app.js
View File

@ -208,6 +208,8 @@ app.use(
express.static(path.join(__dirname, 'public'), {maxAge: 31557600000})
);
app.use(express.static(__dirname + '/public', { maxAge: 86400000 }));
/**
* Main routes.
*/