to user interactions even on flaky networks ▪ Reliable Load instantly even in uncertain network conditions ▪ Engaging Feel like a natural app on the device (?) “With great power comes great responsibility.” (Ben Parker, uncle of Spider-Man)
different location and you want to control root directory: ▪ Add { scope: '/' } as registration parameter ▪ Add Service-Worker-Allowed: / header to service worker file 19
party URL will fail if it doesn't support CORS. You can add a no-CORS option to the Request to overcome this, although this will cause an 'opaque' response, which means you won't be able to tell if the response was successful or not. ▪ no-cors - risky as request may fail ▪ configuring CORS properly - can be problematic with some CDNs 30