diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-14 01:46:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-14 01:46:03 +0900 |
| commit | 8260464090aefce364ca5ce5d116f12f0b84e617 (patch) | |
| tree | 91f937ade89339334aa3581868eda5d888d60885 /src/server/file | |
| parent | Cache url preview (diff) | |
| download | sharkey-8260464090aefce364ca5ce5d116f12f0b84e617.tar.gz sharkey-8260464090aefce364ca5ce5d116f12f0b84e617.tar.bz2 sharkey-8260464090aefce364ca5ce5d116f12f0b84e617.zip | |
Add note
Diffstat (limited to 'src/server/file')
| -rw-r--r-- | src/server/file/index.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/file/index.ts b/src/server/file/index.ts index d305286d12..29056c63e7 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(); }); |