From a2703293df7457ff023a908658ccf469c126dbe7 Mon Sep 17 00:00:00 2001 From: Josh Salisbury Date: Wed, 10 Mar 2021 15:31:47 -0600 Subject: [PATCH] Attempt to force IE to not cache GET requests --- frontend/src/fetchers/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/fetchers/index.js b/frontend/src/fetchers/index.js index 5b3a26eba6..edb25fcd03 100644 --- a/frontend/src/fetchers/index.js +++ b/frontend/src/fetchers/index.js @@ -10,6 +10,10 @@ export class HTTPError extends Error { export const get = async (url) => { const res = await fetch(url, { credentials: 'same-origin', + headers: { + 'Cache-Control': 'no-cache', + Pragma: 'no-cache', + }, }); if (!res.ok) { throw new HTTPError(res.status, res.statusText);