diff options
author | Florian Dold <florian@dold.me> | 2024-02-22 15:43:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-22 15:43:37 +0100 |
commit | 872f7365a27ee746b33b472fda78580f43d601fa (patch) | |
tree | 5da05059a30497f5735734a557b923d17f80cbc5 | |
parent | 1b3a37f73641e923bf9f88cadd482cd7f97f361f (diff) | |
download | wallet-core-872f7365a27ee746b33b472fda78580f43d601fa.tar.gz wallet-core-872f7365a27ee746b33b472fda78580f43d601fa.tar.bz2 wallet-core-872f7365a27ee746b33b472fda78580f43d601fa.zip |
wallet-core: first time fetch of exchange info should not use cache
-rw-r--r-- | packages/taler-wallet-core/src/exchanges.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/exchanges.ts b/packages/taler-wallet-core/src/exchanges.ts index 3e38925c1..6095fadd5 100644 --- 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, |