Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ registerRoute(
// Sometimes navigator.onLine is not reliable,
// try to serve the resource from the cache also in the case of a network failure.
try {
return await networkOnly.handle(context);
const { request } = context;
const isEdge = /Edg/.test(self.navigator.userAgent);
const newContext = { ...context, request: request.clone() };
return await networkOnly.handle(isEdge ? newContext : context);
} catch (error) {
const response = await serveResourceFromCache();
if (response) {
Expand Down
Loading