Do not cache onboarding page (#3337)

This commit is contained in:
Paulus Schoutsen 2019-07-10 08:17:51 -07:00 committed by GitHub
parent 7cfdc24a8c
commit 628692b2e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,9 +19,11 @@ function initRouting() {
new workbox.strategies.NetworkOnly()
);
// Get manifest and service worker from network.
// Get manifest, service worker, onboarding from network.
workbox.routing.registerRoute(
new RegExp(`${location.host}/(service_worker.js|manifest.json)`),
new RegExp(
`${location.host}/(service_worker.js|manifest.json|onboarding.html)`
),
new workbox.strategies.NetworkOnly()
);