diff --git a/server/routes/index.js b/server/routes/index.js index c12f0827d1..6a29b34eb9 100644 --- a/server/routes/index.js +++ b/server/routes/index.js @@ -129,9 +129,7 @@ router.get("/locales/:lng.json", async (ctx) => { await send(ctx, path.join(lng, "translation.json"), { setHeaders: (res, path, stat) => { if (process.env.NODE_ENV === "production") { - res.setHeader({ - "Cache-Control": `max-age=${7 * 24 * 60 * 60}`, - }); + res.setHeader("Cache-Control", `max-age=${7 * 24 * 60 * 60}`); } }, root: path.join(__dirname, "../../shared/i18n/locales"),