1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-04 17:58:10 +09:00
This commit is contained in:
syuilo 2018-04-14 01:46:03 +09:00
parent fde2782a9e
commit 8260464090

View File

@ -14,6 +14,7 @@ const app = new Koa();
app.use(cors()); app.use(cors());
app.use(async (ctx, next) => { app.use(async (ctx, next) => {
// Cache 365days
ctx.set('Cache-Control', 'max-age=31536000, immutable'); ctx.set('Cache-Control', 'max-age=31536000, immutable');
await next(); await next();
}); });