mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: agent
This commit is contained in:
@@ -89,7 +89,7 @@ export class MainConfiguration {
|
|||||||
this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => {
|
this.app.getMiddleware().insertFirst(async (ctx: IMidwayKoaContext, next: NextFunction) => {
|
||||||
await next();
|
await next();
|
||||||
if (ctx.path === '/' || ctx.path === '/index.html') {
|
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');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user