chore: agent

pull/213/head
xiaojunnuo 2024-10-11 15:43:26 +08:00
parent 8ab632c97c
commit 38be8d84b2
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ export class MainConfiguration {
this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => {
await next();
if (ctx.path === '/' || ctx.path === '/index.html') {
ctx.response.set('Cache-Control', 'public,max-age=180');
ctx.response.set('Cache-Control', 'public,max-age=60');
}
});