From 1a8422b0e9b489552bfd1d9d25d32967b9354605 Mon Sep 17 00:00:00 2001 From: Victor Hargrave Date: Thu, 7 Mar 2024 19:06:32 +0100 Subject: [PATCH] MWPW-143202 prevent caching of geo2 request --- libs/features/georoutingv2/georoutingv2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/features/georoutingv2/georoutingv2.js b/libs/features/georoutingv2/georoutingv2.js index 9abdf8d6fa..02a32f9589 100644 --- a/libs/features/georoutingv2/georoutingv2.js +++ b/libs/features/georoutingv2/georoutingv2.js @@ -42,7 +42,7 @@ const getAkamaiCode = () => new Promise((resolve, reject) => { resolve(akamaiLocale.toLowerCase()); } else { /* c8 ignore next 5 */ - fetch('https://geo2.adobe.com/json/').then((resp) => { + fetch('https://geo2.adobe.com/json/', { cache: 'no-cache' }).then((resp) => { if (resp.ok) { resp.json().then((data) => { const code = data.country.toLowerCase();