kiwix / kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
https://pwa.kiwix.org
GNU General Public License v3.0
177 stars 29 forks source link

PWA sometimes fails to cache all its assets, and then does not fetch them when needed #523

Open Jaifroid opened 8 months ago

Jaifroid commented 8 months ago

If the PWA fails to cache all its assets on first load, it should later fetch (and cache) any resources needed if it is online. But it doesn't always seem to do this. For example, with the darkreader.min.js plugin, I have seen a few cases of it failing to load as part of the PWA, and then refusing to load subsequently. It just silently fails and the user is left wondering why dark mode is not responding.

What should happen is that resources are fetched from the server whenever needed if they are not cached, as this is part of the PWA specification (fallback to online version). Needs debugging, but it is difficult to reproduce.