commit 872f7365a27ee746b33b472fda78580f43d601fa
parent 1b3a37f73641e923bf9f88cadd482cd7f97f361f
Author: Florian Dold <florian@dold.me>
Date: Thu, 22 Feb 2024 15:43:37 +0100
wallet-core: first time fetch of exchange info should not use cache
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts
@@ -594,6 +594,10 @@ async function provideExchangeRecordInTx(
nextRefreshCheckStamp: timestampPreciseToDb(
AbsoluteTime.toPreciseTimestamp(AbsoluteTime.never()),
),
+ // The first update should always be done in a way that ignores the cache,
+ // so that removing and re-adding an exchange works properly, even
+ // if /keys is cached in the browser.
+ cachebreakNextUpdate: true,
lastKeysEtag: undefined,
tosAcceptedEtag: undefined,
tosAcceptedTimestamp: undefined,