Title: Expose more events from service worker update cycle · Issue #39840 · angular/angular · GitHub
Open Graph Title: Expose more events from service worker update cycle · Issue #39840 · angular/angular
X Title: Expose more events from service worker update cycle · Issue #39840 · angular/angular
Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker Description We are currently experiencing an issue with a significant percentage of our users using outdated versions of our application. We're not re...
Open Graph Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker Description We are currently experiencing an issue with a significant percentage of our users using outdated v...
X Description: 🚀 feature request Relevant Package This feature request is for @angular/service-worker Description We are currently experiencing an issue with a significant percentage of our users using outdated v...
Opengraph URL: https://github.com/angular/angular/issues/39840
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose more events from service worker update cycle","articleBody":"# 🚀 feature request\r\n\r\n### Relevant Package\r\nThis feature request is for @angular/service-worker\r\n\r\n### Description\r\nWe are currently experiencing an issue with a significant percentage of our users using outdated versions of our application. We're not really sure whether they're taking a very long time to update their applications or is it more of a problem with detection of the new version or something else. We don't have enough data to determine whether there is an issue with our service worker implementation, an issue with our application or maybe some edge case in the framework. [Currently](https://angular.io/guide/service-worker-communications) the service worker exposes only the `available` and `activated` events. This gives only a bit of an insight on how does the service worker perform updates on the client side. \r\n\r\n### Describe the solution you'd like\r\nAs mentioned before the service worker currently exposes only two events\r\n - a new version is available to be activated\r\n - a new version has been activated\r\n\r\nIdeally the service would expose some additional events like\r\n - a new version has been detected to exist (but is not available to use yet)\r\n - a new version starts downloading\r\n - a new version finishes downloading\r\n\r\nThis would allow us to track those events, figure out why is it that some users are taking very long time to get the new version and/or maybe optimise some parts of the flow.\r\n\r\n##\r\n_**EDIT(gkalpak)**_\r\n_Related issue: #34397_\r\n","author":{"url":"https://github.com/marcinowski","@type":"Person","name":"marcinowski"},"datePublished":"2020-11-25T11:26:41Z","url":"https://github.com/angular/angular/issues/39840"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:308e4fab-3c3e-aad0-cb19-c4af8b8ecf65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E318:2564D8:183F2B5:1FFF661:6B013C29 |
| html-safe-nonce | 8ddc3075efb635ce41ec8e6670464508665bd096041899321e0432bfc0770238 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzE4OjI1NjREODoxODNGMkI1OjFGRkY2NjE6NkIwMTNDMjkiLCJ2aXNpdG9yX2lkIjoiMzQ0Nzk4MDM5MzkwMTQwNzI3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 84cabace4ad484ca2cd23506de197a571731d234299b05c5ee623be4c1b8adc2 |
| hovercard-subject-tag | issue:750736363 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/39840/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2e7554509f6e03e9033ff649d4f4608fbb6212aa8c4a2efdd0afdb3bd423a07c/angular/angular/issues/39840 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2e7554509f6e03e9033ff649d4f4608fbb6212aa8c4a2efdd0afdb3bd423a07c/angular/angular/issues/39840 |
| og:image:alt | 🚀 feature request Relevant Package This feature request is for @angular/service-worker Description We are currently experiencing an issue with a significant percentage of our users using outdated v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | marcinowski |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width