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

#798
This commit is contained in:
Nicolas Meienberger 2026-04-25 09:34:06 +02:00
parent 3adc722cca
commit 6c85ae6f9d
No known key found for this signature in database
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);
})