Skip to content

Commit a357e22

Browse files
wesbillmanBrain
andauthored
fix(updater): send no-cache header on update check to avoid stale manifest (#922)
Signed-off-by: Wes <[email protected]> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
1 parent 56230c1 commit a357e22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎desktop/src/features/settings/hooks/use-updater.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ export function useUpdater() {
122122
setStatus({ state: "checking" });
123123
}
124124

125-
const update = await check();
125+
const update = await check({
126+
headers: { "Cache-Control": "no-cache" },
127+
});
126128
const shouldShowQuietResult =
127129
!background || manualResultRequestedRef.current;
128130

0 commit comments

Comments
 (0)