Skip to content

Commit ade6c7d

Browse files
committed
chore: add manual cache buster to fetched links
1 parent 37d5323 commit ade6c7d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

explore.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,11 @@ layout: false
5353
}, { immediate: true })
5454
})
5555
});
56+
const cacheBuster = `?t=${new Date().getTime()}`; // Add a timestamp for cache busting
5657
</script>
5758

5859
<NavBar></NavBar>
5960
<eo-dash
60-
.config="withBase('/dashboard.js')"
61+
.config="withBase(`/dashboard.js${cacheBuster}`)"
6162
style="display: block; height: calc(100dvh - var(--vp-nav-height)) !important;"
62-
></eo-dash>
63+
></eo-dash>

providers/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ layout: page
2222
const getNarrativesForProvider = (providerKey) => narratives.value.filter(n => n.provider === providerKey);
2323

2424
onMounted(async () => {
25-
const providersResponse = await fetch(withBase("/providers.json"));
25+
const cacheBuster = `?t=${new Date().getTime()}`; // Add a timestamp for cache busting
26+
const providersResponse = await fetch(withBase(`/providers.json${cacheBuster}`));
2627
const providersJson = await providersResponse.json();
2728

28-
const indicatorsResponse = await fetch("https://gtif-austria.github.io/public-catalog/GTIF-Austria/catalog.json");
29+
const indicatorsResponse = await fetch(`https://gtif-austria.github.io/public-catalog/GTIF-Austria/catalog.json${cacheBuster}`);
2930
const indicatorsJson = await indicatorsResponse.json();
3031
indicators.value = indicatorsJson.links.filter(c => c.rel === "child");
3132

32-
const narrativesResponse = await fetch("https://gtif-austria.github.io/public-narratives/narratives.json");
33+
const narrativesResponse = await fetch(`https://gtif-austria.github.io/public-narratives/narratives.json${cacheBuster}`);
3334
narratives.value = await narrativesResponse.json();
3435

3536
const enhancedProviders = Object.entries(providersJson).map(([key, provider]) => ({

0 commit comments

Comments
 (0)