mirror of
https://github.com/outline/outline.git
synced 2026-11-28 16:19:46 +03:00
fix: Misformatted cache header
This commit is contained in:
1 parent
2054087fb6
commit
508f06176a
1 file changed
+1
-3
@@ -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"),
|
||||
|
||||
Reference in new issue
Block a user