| Summary: | fetch fails only when site/pwa is added to homescreen | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | mustafa.0x |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Major | CC: | ap, hosskhalifa, katherine_cheney, webkit-bug-importer, wilander, youennf |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 13 | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 13 | ||
|
Description
mustafa.0x
2020-06-29 07:18:54 PDT
I have a similar situation Very important to fix Note: I updated the service worker to ignore this fetch, and that *seems* to have fixed the issue.
If so, the bug is with the sw's proxying.
The change I made to the service worker:
self.addEventListener('fetch', e => {
+ if (e.request.url === 'https://files.turath.io/data.json')
+ return;
e.respondWith(caches.match(e.request).then(r => r || fetch(e.request)));
});
|