Set Cache-Control for static resources
This commit is contained in:
parent
ebc7dd9ada
commit
7510e75688
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user