Service worker doesn't work.

read an article about Service worker on the Internet
http://www.zhangxinxu.com/wor.
, but the example cache in it doesn"t work. My browser is already the latest Google browser

.

clipboard.png

clipboard.png

clipboard.png
it can be run under Firefox. The code should be fine. I want to know if it"s the browser or something

.

in the developer tool of Chrome, under the Application tag, take a look at

  1. whether Service Worker is registered successfully
  2. whether the resources you need are successfully cached in the Application Cache under Cache
Menu