Skip to content

Commit

Permalink
MWPW-143202 prevent caching of geo2 request
Browse files Browse the repository at this point in the history
  • Loading branch information
vhargrave committed Mar 7, 2024
1 parent d258274 commit 1a8422b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/features/georoutingv2/georoutingv2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1a8422b

Please sign in to comment.