René's URL Explorer Experiment


Title: Service worker locked in EXISTING_CLIENTS_ONLY state · Issue #31109 · angular/angular · GitHub

Open Graph Title: Service worker locked in EXISTING_CLIENTS_ONLY state · Issue #31109 · angular/angular

X Title: Service worker locked in EXISTING_CLIENTS_ONLY state · Issue #31109 · angular/angular

Description: 🐞 bug report Affected Package The issue is caused by package @angular/pwa Is this a regression? Not a regression I think. Description If a network failure happens, the service worker will enter the EXISTING_CLIENTS_ONLY state. If a conne...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/pwa Is this a regression? Not a regression I think. Description If a network failure happens, the service worker will enter the...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/pwa Is this a regression? Not a regression I think. Description If a network failure happens, the service worker will enter the...

Opengraph URL: https://github.com/angular/angular/issues/31109

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service worker locked in EXISTING_CLIENTS_ONLY state","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package @angular/pwa\r\n\r\n### Is this a regression?\r\n\r\nNot a regression I think.\r\n\r\n### Description\r\n\r\nIf a network failure happens, the service worker will enter the\r\n`EXISTING_CLIENTS_ONLY` state.\r\n\r\nIf a connected client reloads (F5), the service worker will stay in that state\r\nforever and serve nothing to the client, nor to other clients or reloading clients.\r\n\r\nIn my opinion, it would be better if the service worker kept serving the old\r\ncached version, while waiting for the network to recover and the update to occur successfully.\r\nOtherwise, offline mode is broken.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nTo enter `EXISTING_CLIENTS_ONLY` state:\r\n\r\n1. Create an Angular app:\r\n\r\n        mkdir drop_me\r\n        cd drop_me\r\n        npm install @angular/cli\r\n        node_modules/.bin/ng new my-dream-app\r\n        cd my-dream-app\r\n        node_modules/.bin/ng add @angular/pwa --project my-dream-app\r\n        node_modules/.bin/ng build --prod\r\n        npm install http-server\r\n        node_modules/.bin/http-server -p 8080 -c-1 dist/my-dream-app\r\n\r\n2. Open `http://localhost:8080` in Chrome and wait for the page\r\n\r\n3. Kill the server\r\n\r\n4. Change something in `src/app/app.component.html`\r\n\r\n5. Rebuild and serve:\r\n\r\n        node_modules/.bin/ng build --prod\r\n        node_modules/.bin/http-server -p 8080 -c-1 dist/my-dream-app\r\n\r\n6. Go back in Chrome, it `slow 3g network` in dev tool, hit F5, and wait for\r\nthe service worker to start downloading `index.html`, `main.js` or any file of\r\nthe update.\r\n\r\n    When that happen, check chrome devtool `Offline` checkbox.\r\n\r\n    The service worker is now in `EXISTING_CLIENTS_ONLY`.\r\n\r\n\r\nFrom now, to create the issue, just hit F5.\r\n\r\nThe application will be broken offline, even after network reconnection,\r\ntab close/re-open, etc.\r\n\r\nFor me, beside unregistering the service worker manually, only a new update of\r\nthe application can fix the state.\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 8.0.3\r\nNode: 11.5.0\r\nOS: linux x64\r\nAngular: 8.0.1\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router, service-worker\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.800.3\r\n@angular-devkit/build-angular     0.800.3\r\n@angular-devkit/build-optimizer   0.800.3\r\n@angular-devkit/build-webpack     0.800.3\r\n@angular-devkit/core              8.0.3\r\n@angular-devkit/schematics        8.0.3\r\n@angular/cli                      8.0.3\r\n@angular/pwa                      0.800.3\r\n@ngtools/webpack                  8.0.3\r\n@schematics/angular               8.0.3\r\n@schematics/update                0.800.3\r\nrxjs                              6.4.0\r\ntypescript                        3.4.5\r\nwebpack                           4.30.0\r\n\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\n\r\nOnly tested on Chrome.\r\n","author":{"url":"https://github.com/H--o-l","@type":"Person","name":"H--o-l"},"datePublished":"2019-06-18T15:16:55Z","url":"https://github.com/angular/angular/issues/31109"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b72dc1e1-3bd2-69ab-0526-63e83ae9fbe5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCBB0:91CF4:15F97C6:1D1749F:6B012C31
html-safe-nonce991f2f45036f2942a2b66e822c58d1f74eead72fac456ca0817a8c6871b51f84
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkIwOjkxQ0Y0OjE1Rjk3QzY6MUQxNzQ5Rjo2QjAxMkMzMSIsInZpc2l0b3JfaWQiOiI0MTc3MjE2MzU4NDQzOTg1OTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5a9130db9fccfef8b3193f64f2394f4f5bdfd62248cf1fc0fe63f7f0b7dabd6d
hovercard-subject-tagissue:457543444
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/31109/issue_layout
twitter:imagehttps://opengraph.githubassets.com/46d0716aaf4b49d5c47e6316dea9e5f8e17ee59bf6be2374a3578cf671055f34/angular/angular/issues/31109
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/46d0716aaf4b49d5c47e6316dea9e5f8e17ee59bf6be2374a3578cf671055f34/angular/angular/issues/31109
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/pwa Is this a regression? Not a regression I think. Description If a network failure happens, the service worker will enter the...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameH--o-l
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/31109#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F31109
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F31109
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/31109
Reloadhttps://github.com/angular/angular/issues/31109
Reloadhttps://github.com/angular/angular/issues/31109
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/31109
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/31109
Service worker locked in EXISTING_CLIENTS_ONLY statehttps://github.com/angular/angular/issues/31109#top
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Jun 18, 2019https://github.com/angular/angular/issues/31109#issue-457543444
AndrewKushnirhttps://github.com/AndrewKushnir
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
on Jun 18, 2019https://github.com/angular/angular/issues/31109#event-2421794417
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 18, 2019https://github.com/angular/angular/issues/31109#event-2421794446
alxhubhttps://github.com/alxhub
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Jun 18, 2019https://github.com/angular/angular/issues/31109#event-2422408914
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Jun 18, 2019https://github.com/angular/angular/issues/31109#event-2422408938
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Jun 25, 2019https://github.com/angular/angular/issues/31109#issuecomment-505230477
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Jun 25, 2019https://github.com/angular/angular/issues/31109#issuecomment-505523051
@gkalpakhttps://github.com/gkalpak
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jun 26, 2019https://github.com/angular/angular/issues/31109#issuecomment-505999330
@H--o-lhttps://github.com/H--o-l
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jul 8, 2019https://github.com/angular/angular/issues/31109#issuecomment-509275663
@H--o-lhttps://github.com/H--o-l
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Jul 23, 2019https://github.com/angular/angular/issues/31109#issuecomment-514198516
@H--o-lhttps://github.com/H--o-l
comment herehttps://github.com/angular/angular/issues/25307#issuecomment-410632977
The documentation explains what are the degraded statehttps://angular.io/guide/service-worker-devops#driver-state
@gkalpakhttps://github.com/gkalpak
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jul 24, 2019https://github.com/angular/angular/issues/31109#issuecomment-514578768
[Service Worker] Can't update sw if in SAFE_MODE #22087 (comment)https://github.com/angular/angular/issues/22087#issuecomment-366099563
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jul 26, 2019https://github.com/angular/angular/issues/31109#issuecomment-515593093
#31865https://github.com/angular/angular/pull/31865
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Jul 29, 2019https://github.com/angular/angular/issues/31109#issuecomment-516023906
b643d51https://github.com/angular/angular/commit/b643d5172efb89d278e076b0f66fc9c861a21460
mheveryhttps://github.com/mhevery
completedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
094538chttps://github.com/angular/angular/commit/094538c0ce3d3a7453396e0109a3e4e0b737c250
on Sep 4, 2019https://github.com/angular/angular/issues/31109#event-2608716355
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Sep 5, 2019https://github.com/angular/angular/issues/31109#issuecomment-528228413
@H--o-lhttps://github.com/H--o-l
#31865https://github.com/angular/angular/pull/31865
sabeersulaimanhttps://github.com/sabeersulaiman
on Sep 6, 2019https://github.com/angular/angular/issues/31109#event-2614104632
feat(service-worker): recover from `EXISTING_CLIENTS_ONLY` mode when …https://github.com/sabeersulaiman/angular/commit/947d998cc0ed39e0d0632a24de214e9d7823134b
https://docs.github.com/articles/closing-issues-via-commit-messages
947d998https://github.com/sabeersulaiman/angular/commit/947d998cc0ed39e0d0632a24de214e9d7823134b
https://github.com/H--o-l
H--o-lhttps://github.com/H--o-l
on Sep 14, 2019https://github.com/angular/angular/issues/31109#issuecomment-531487628
@gkalpakhttps://github.com/gkalpak
#31865https://github.com/angular/angular/pull/31865
#32682https://github.com/angular/angular/pull/32682
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 15, 2019https://github.com/angular/angular/issues/31109#issuecomment-542287394
automatic conversation locking policyhttps://github.com/angular/angular/blob/67d80f/docs/GITHUB_PROCESS.md#conversation-locking
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Oct 15, 2019https://github.com/angular/angular/issues/31109#event-2714583691
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/31109
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/31109
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
regressionIndicates than the issue relates to something that worked in a previous versionhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22regression%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.