fix(system): ensure version check is not cached by browser (#833)

#798
This commit is contained in:
Nico 2026-04-25 09:41:29 +02:00 committed by GitHub
parent e506047415
commit a5d47eac5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View file

@ -6,7 +6,8 @@ export function useUpdates() {
...getUpdatesOptions(),
staleTime: 60 * 60 * 1000,
gcTime: 24 * 60 * 60 * 1000,
refetchOnWindowFocus: false,
refetchOnMount: "always",
refetchOnWindowFocus: "always",
});
return {

View file

@ -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<UpdateInfoDto>(updates, 200);
})