parent
3adc722cca
commit
6c85ae6f9d
2 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ export function useUpdates() {
|
||||||
...getUpdatesOptions(),
|
...getUpdatesOptions(),
|
||||||
staleTime: 60 * 60 * 1000,
|
staleTime: 60 * 60 * 1000,
|
||||||
gcTime: 24 * 60 * 60 * 1000,
|
gcTime: 24 * 60 * 60 * 1000,
|
||||||
refetchOnWindowFocus: false,
|
refetchOnMount: "always",
|
||||||
|
refetchOnWindowFocus: "always",
|
||||||
});
|
});
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ export const systemController = new Hono()
|
||||||
})
|
})
|
||||||
.get("/updates", getUpdatesDto, async (c) => {
|
.get("/updates", getUpdatesDto, async (c) => {
|
||||||
const updates = await systemService.getUpdates();
|
const updates = await systemService.getUpdates();
|
||||||
|
c.header("Cache-Control", "no-store");
|
||||||
|
|
||||||
return c.json<UpdateInfoDto>(updates, 200);
|
return c.json<UpdateInfoDto>(updates, 200);
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue