When does Chrome update the service worker automatically?
Reported by
ja...@onesignal.com,
Dec 15 2016
|
||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2946.0 Safari/537.36 Steps to reproduce the problem: *Not an issue, just some questions regarding Chrome's specific implementation* 1. Does Chrome ever update a service in the background, NOT as part of a navigation event to a service worker-controlled URL? For example, if someone visits https://my-site.com once, never visits it again, and uses their browser regularly and leaves it running, when would the service worker for https://my-site.com auto update (if ever)? 2. Does the service worker perform an update check when it receives a push event from a received push notification? And if the same https://my-site.com was only visited once and the user subscribed to push, and a week elapsed between push notifications, the newest push notification would trigger a service worker update right? What is the expected behavior? What went wrong? *Not an issue, just a question* Did this work before? N/A Does this work in other browsers? N/A Chrome version: 57.0.2946.0 Channel: dev OS Version: OS X 10.11.6 Flash Version:
,
Dec 15 2016
Whenever the service worker starts up or is running, it'll trigger an update if one hasn't happened in over 24 hours. So yes a push notification would trigger an update if one hasn't happened in a week. For questions like this, please use the mailing list service-worker-discuss@chromium.org or StackOverflow as we want to keep the bug tracker about issues. Thanks!
,
Dec 15 2016
Sorry about that, will do. Thanks for the quick reply! |
||
►
Sign in to add a comment |
||
Comment 1 by tkent@chromium.org
, Dec 15 2016