“Status Code:200 OK (from ServiceWorker)” in Chrome Network DevTools?

后端 未结 3 1716
抹茶落季
抹茶落季 2020-11-28 07:10

I am familiar with http status codes, but recently I saw a strange line in my chrome debugger. Instead of ordinary Status Code:200 OK I saw the following:

3条回答
  •  死守一世寂寞
    2020-11-28 07:41

    A service worker is a script that is run by your browser in the background. So Status Code:200 OK (from ServiceWorker) mean that “OK” success code, for GET or HEAD request and this status come from ServiceWorker.

    You can read this link to understand more about this. http://www.html5rocks.com/en/tutorials/service-worker/introduction/

提交回复
热议问题