Skip to content

Commit

Permalink
Attempt to force IE to not cache GET requests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasalisbury committed Mar 10, 2021
1 parent bd6ce10 commit a270329
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/src/fetchers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a270329

Please sign in to comment.