Skip to content

Commit

Permalink
fix #8411, fetch in case of cache error
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Jun 30, 2019
1 parent ef9e5ff commit afab3ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/util/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ function makeFetchRequest(requestParameters: RequestParameters, callback: Respon

const validateOrFetch = (err, cachedResponse, responseIsFresh) => {
if (err) {
return callback(err);
// Do fetch in case of cache error.
// HTTP pages in Edge trigger a security error that can be ignored.
if (err.message !== 'SecurityError') {
console.warn(err);
}
}

if (cachedResponse && responseIsFresh) {
Expand Down

0 comments on commit afab3ae

Please sign in to comment.