-
-
Notifications
You must be signed in to change notification settings - Fork 291
Description
We should also specify the
ServiceWorker.navigateFallbackURL, which instructs the service worker to redirect any non-cached navigation request to the specified route.
https://github.com/NekR/offline-plugin/blob/master/docs/examples/SPA.md
Previously, to achieve the same effect,
ServiceWorker.navigateFallbackURLandAppCache.FALLBACKoption had to be used.ServiceWorker.navigateFallbackURLis now deprecated and shouldn't be used at all. Instead,appShellshould be used.
https://github.com/NekR/offline-plugin/blob/master/docs/app-shell.md
I'm not entirely sure what the correct documentation would be, but given that the SPA one is older I assume it's the outdated one. Since it is the first and only linked example from the README.md, this can lead people astray.