max age
This commit is contained in:
parent
cd32967f72
commit
8bb909367c
@ -41,7 +41,7 @@ class Home extends Endpoint
|
|||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
server.app.use(`/${file}`, [ this.#checkAuth.bind(this), express.static(p) ]);
|
server.app.use(`/${file}`, [ this.#checkAuth.bind(this), express.static(p, { maxAge: DAY }) ]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user