Set Cache-Control for static resources

This commit is contained in:
Tankred Hase 2016-06-22 14:37:24 +02:00
parent ebc7dd9ada
commit 7510e75688

View File

@ -91,7 +91,7 @@ app.use(router.routes());
app.use(router.allowedMethods());
// serve static files
app.use(serve(__dirname + '/static'));
app.use(serve(__dirname + '/static', { maxage:31536000000 }));
app.on('error', (error, ctx) => {
if (error.status) {