increase Service Worker life time
问题 I'm trying push notifications using service workers. use my own server to send notifications and eventSource is used to establish the connection. after i open the webpage service worker is running perfectly. but it stops after few seconds. what i want is to run service worker without getting stopped. i want it to run until the browser is opened. can anyone recommend a way to do that. ? this is my ServiceWorker JS /** * */ 'use strict'; var eventSource2 = new EventSource("Servlet"); console