mirror of
https://github.com/block/bitcoin-treasury.git
synced 2025-06-04 08:12:04 +00:00
Do not cache API response
This commit is contained in:
parent
a7aae220ab
commit
464f902776
@ -128,7 +128,8 @@ function HomeContent() {
|
|||||||
setIsFetching(true);
|
setIsFetching(true);
|
||||||
try {
|
try {
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
"https://pricing.bitcoin.block.xyz/current-price"
|
"https://pricing.bitcoin.block.xyz/current-price",
|
||||||
|
{ cache: "no-store" }
|
||||||
);
|
);
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user