File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff 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 ]) => ({
You can’t perform that action at this time.
0 commit comments