Unchanged service worker is re-installing and re-caching

后端 未结 2 1034
醉梦人生
醉梦人生 2021-01-03 15:13

I\'m registering my service worker, and in the registered callback, loading some cached files

if (\'serviceWorker\' in navigator) {
    navigator.serviceWork         


        
2条回答
  •  臣服心动
    2021-01-03 15:39

    It should not be there because the install event is called only once.I think the issue is in your chrome browser force update service worker is checked.Open developer console on chrome -> go to application tab -> service worker and uncheck update on reload.

提交回复
热议问题