Skip to content

Commit

Permalink
nt1m#342 nt1m#372 - Try to prevent caching of request
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpie committed Oct 14, 2021
1 parent d7dcedd commit a5e38c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions shared/feed-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const FeedParser = {
return new Promise((resolve, reject) => {
const request = new XMLHttpRequest();
request.open("GET", url, true);
// Try to prevent caching.
request.setRequestHeader("Cache-Control", "no-store, max-age=0");
request.timeout = 10000; // time in milliseconds

request.addEventListener("load", (event) => {
Expand Down

0 comments on commit a5e38c4

Please sign in to comment.