Skip to content

Commit

Permalink
Merge pull request #109 from lfortran/fetch_no_cache
Browse files Browse the repository at this point in the history
Do not cache fetch request
  • Loading branch information
Shaikh-Ubaid authored Sep 7, 2023
2 parents fe13d54 + 7712237 commit 2d678b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function Home() {
setDataFetch(true);
} else if (urlParams.get("gist")) {
const gistUrl = gist + urlParams.get("gist") + "/raw/";
fetch(gistUrl)
fetch(gistUrl, {cache: "no-store"})
.then((response) => response.text())
.then((data) => {
setSourceCode(data);
Expand Down

0 comments on commit 2d678b1

Please sign in to comment.