diff --git a/app/client/hooks/use-updates.ts b/app/client/hooks/use-updates.ts index 04becb23..32e68662 100644 --- a/app/client/hooks/use-updates.ts +++ b/app/client/hooks/use-updates.ts @@ -6,7 +6,8 @@ export function useUpdates() { ...getUpdatesOptions(), staleTime: 60 * 60 * 1000, gcTime: 24 * 60 * 60 * 1000, - refetchOnWindowFocus: false, + refetchOnMount: "always", + refetchOnWindowFocus: "always", }); return { diff --git a/app/server/modules/system/system.controller.ts b/app/server/modules/system/system.controller.ts index 4dde4e5b..210606cb 100644 --- a/app/server/modules/system/system.controller.ts +++ b/app/server/modules/system/system.controller.ts @@ -32,6 +32,7 @@ export const systemController = new Hono() }) .get("/updates", getUpdatesDto, async (c) => { const updates = await systemService.getUpdates(); + c.header("Cache-Control", "no-store"); return c.json(updates, 200); })