Title: Feature request: Enhanced Control and Feedback for Service Worker Registration and Caching · Issue #57159 · angular/angular · GitHub
Open Graph Title: Feature request: Enhanced Control and Feedback for Service Worker Registration and Caching · Issue #57159 · angular/angular
X Title: Feature request: Enhanced Control and Feedback for Service Worker Registration and Caching · Issue #57159 · angular/angular
Description: Command build Description Currently, the Angular service worker does not provide adequate control and feedback mechanisms during the registration and caching process. This can lead to issues where developers are unable to detect if the s...
Open Graph Description: Command build Description Currently, the Angular service worker does not provide adequate control and feedback mechanisms during the registration and caching process. This can lead to issues where ...
X Description: Command build Description Currently, the Angular service worker does not provide adequate control and feedback mechanisms during the registration and caching process. This can lead to issues where ...
Opengraph URL: https://github.com/angular/angular/issues/57159
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Enhanced Control and Feedback for Service Worker Registration and Caching","articleBody":"### Command\n\nbuild\n\n### Description\n\nCurrently, the Angular service worker does not provide adequate control and feedback mechanisms during the registration and caching process. This can lead to issues where developers are unable to detect if the service worker registration has failed or if the caching process has been successfully completed.\r\nExample, right now I am unable to detect if the service worker registration failed. After inspection I found out that the `navigator.serviceworker.register` code is present in main.js file generated after production build. The catch handler attached to the returned promise just consoles the error. \r\nAlso, there is no feedback about the caching of assets. The service worker is installed even if any asset could not be cached but some use cases might things to be handled a little differently.\n\n### Describe the solution you'd like\n\nThe `ServiceWorker `module could provide some observables which emit such errors and feedback for registration failure, successful caching etc., \r\nAlso more control over caching should be present because for some applications which are fully offline might require that all assets be cached before the Service worker installation is deemed successful. \n\n### Describe alternatives you've considered\n\nTried using the observables provided by SwUpdate service but realized that they don't work for the initial registration. \r\nTried using navigator.serviceworker.ready promise but this promise never rejects and will wait indefinitely to resolve until some SW is registered.","author":{"url":"https://github.com/khanurooj5299","@type":"Person","name":"khanurooj5299"},"datePublished":"2024-07-27T15:16:51Z","url":"https://github.com/angular/angular/issues/57159"}
| 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:a5cb776f-b003-cbb5-0846-486b3d901351 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C9DA:2F4BD9:FDE9D0:1500117:6B0107ED |
| html-safe-nonce | e8337569fccb3645a1ac917c405c71465c01a14cd7cd6d09144b8b6ed448d25d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOURBOjJGNEJEOTpGREU5RDA6MTUwMDExNzo2QjAxMDdFRCIsInZpc2l0b3JfaWQiOiI3NzEzMjczNzAwNzIzNzg3NzU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fac99f04dccb4ab44654a61432a96a621783f62fc67d8f9e819e641dd0607a33 |
| hovercard-subject-tag | issue:2433522477 |
| 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/57159/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3aa68cf85a0d542f7f0f51ab2fafd8e8298180ce3b666e63a4337c4489ce1a95/angular/angular/issues/57159 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3aa68cf85a0d542f7f0f51ab2fafd8e8298180ce3b666e63a4337c4489ce1a95/angular/angular/issues/57159 |
| og:image:alt | Command build Description Currently, the Angular service worker does not provide adequate control and feedback mechanisms during the registration and caching process. This can lead to issues where ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | khanurooj5299 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width