We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b64793 commit ab60759Copy full SHA for ab60759
Russkyc.Timely/wwwroot/service-worker.published.js
@@ -52,6 +52,15 @@ async function onFetch(event) {
52
const request = shouldServeIndexHtml ? 'index.html' : event.request;
53
const cache = await caches.open(cacheName);
54
cachedResponse = await cache.match(request);
55
+
56
+ if (cachedResponse && cachedResponse.redirected) {
57
+ cachedResponse = new Response(cachedResponse.body,
58
+ {
59
+ headers: cachedResponse.headers,
60
+ status: cachedResponse.status,
61
+ statusText: cachedResponse.statusText
62
+ });
63
+ }
64
}
65
66
return cachedResponse || fetch(event.request);
0 commit comments