mirror of
https://github.com/block/buzz.git
synced 2026-11-05 00:41:28 +00:00
fix(updater): send no-cache header on update check to avoid stale manifest (#922)
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -122,7 +122,9 @@ export function useUpdater() {
|
|||||||
setStatus({ state: "checking" });
|
setStatus({ state: "checking" });
|
||||||
}
|
}
|
||||||
|
|
||||||
const update = await check();
|
const update = await check({
|
||||||
|
headers: { "Cache-Control": "no-cache" },
|
||||||
|
});
|
||||||
const shouldShowQuietResult =
|
const shouldShowQuietResult =
|
||||||
!background || manualResultRequestedRef.current;
|
!background || manualResultRequestedRef.current;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user