diff --git a/src/backend/app.ts b/src/backend/app.ts index aa21d6f..1f4f353 100644 --- a/src/backend/app.ts +++ b/src/backend/app.ts @@ -9,8 +9,8 @@ export const createApp = () => { app.use(bodyParser.urlencoded({ extended: true })); app.use("/", createProgressiveForm(mainPageHandler)); - app.use("/frontend", express.static(path.join(import.meta.dirname, "..", "frontend"))); - app.use("/shared", express.static(path.join(import.meta.dirname, "..", "shared"))); + app.use("/frontend", express.static(path.join(import.meta.dirname, "..", "frontend"), { maxAge: 60_000 })); + app.use("/shared", express.static(path.join(import.meta.dirname, "..", "shared"), { maxAge: 60_000 })); return app; };