From 373fd2462c6fa8a66c9c099f85123ed73f3ff90e Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 14 Apr 2018 01:46:03 +0900 Subject: [PATCH] Add note --- src/server/file/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/file/index.ts b/src/server/file/index.ts index d305286d1..29056c63e 100644 --- a/src/server/file/index.ts +++ b/src/server/file/index.ts @@ -14,6 +14,7 @@ const app = new Koa(); app.use(cors()); app.use(async (ctx, next) => { + // Cache 365days ctx.set('Cache-Control', 'max-age=31536000, immutable'); await next(); });