diff --git a/teachertool/src/services/backendRequests.ts b/teachertool/src/services/backendRequests.ts index 6fcb108d0290..20d75fea3b07 100644 --- a/teachertool/src/services/backendRequests.ts +++ b/teachertool/src/services/backendRequests.ts @@ -4,7 +4,9 @@ import { logError } from "./loggingService"; export async function fetchJsonDocAsync(url: string): Promise { try { - const response = await fetch(url); + const response = await fetch(url, { + cache: "no-cache", + }); if (!response.ok) { throw new Error("Unable to fetch the json file"); } else { @@ -70,7 +72,9 @@ export async function loadTestableCollectionFromDocsAsync(fileNames: string[] let allResults: T[] = []; for (const planFile of files) { try { - const response = await fetch(planFile); + const response = await fetch(planFile, { + cache: "no-cache", + }); if (response.ok) { const content = await response.json();