parent
e506047415
commit
a5d47eac5a
2 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ export function useUpdates() {
|
|||
...getUpdatesOptions(),
|
||||
staleTime: 60 * 60 * 1000,
|
||||
gcTime: 24 * 60 * 60 * 1000,
|
||||
refetchOnWindowFocus: false,
|
||||
refetchOnMount: "always",
|
||||
refetchOnWindowFocus: "always",
|
||||
});
|
||||
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue