原文地址:https://www.cnblogs.com/camille666/p/web_api_service_worker.html