DEV Community

Discussion on: Transform any Meteor App into a PWA

Collapse
 
coderjamal profile image
jamal coder

as Pontus Kindblad mentioned, me too i have the same issue ( error: start_url does not respond with a 200 when offlineThe start_url did respond, but not via a service worker).

the SW is very basic and does not handle post requests, so at least you can avoid login errors in your console by editing this line like that.

if(event.request.method === "GET") caches.open(version).then(cache => cache.put(event.request, clonedResponse));

if anyone want his/her application to handle post requests offline, just google it.