From 20a48cabd0d8f764105abbfc9065cdda6d5469d0 Mon Sep 17 00:00:00 2001 From: April John Date: Mon, 4 Sep 2023 18:38:55 +0200 Subject: [PATCH] stop it from being cached --- packages/backend/src/server/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/index.ts b/packages/backend/src/server/index.ts index 9259ef73a..8dc18f499 100644 --- a/packages/backend/src/server/index.ts +++ b/packages/backend/src/server/index.ts @@ -164,8 +164,9 @@ mastoRouter.get("/nodeinfo/2.0.json", async (ctx) => { ctx.body = { version: "2.0", - ...base }; - ctx.set("Cache-Control", "public, max-age=600"); + //...base }; + ...nodeinfo2() }; + //ctx.set("Cache-Control", "public, max-age=600"); }); mastoRouter.post("/oauth/token", async (ctx) => {