René's URL Explorer Experiment


Title: [app-shell] Doesn't work together with @angular/service-worker: "Error: Hash mismatch (cacheBustedFetchFromNetwork)" (+ explanation, + solution) · Issue #8794 · angular/angular-cli · GitHub

Open Graph Title: [app-shell] Doesn't work together with @angular/service-worker: "Error: Hash mismatch (cacheBustedFetchFromNetwork)" (+ explanation, + solution) · Issue #8794 · angular/angular-cli

X Title: [app-shell] Doesn't work together with @angular/service-worker: "Error: Hash mismatch (cacheBustedFetchFromNetwork)" (+ explanation, + solution) · Issue #8794 · angular/angular-cli

Description: cc: @alxhub @StephenFluin Versions Angular CLI: 1.6.0 Node: 8.2.1 OS: darwin x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, platfo...

Open Graph Description: cc: @alxhub @StephenFluin Versions Angular CLI: 1.6.0 Node: 8.2.1 OS: darwin x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-brow...

X Description: cc: @alxhub @StephenFluin Versions Angular CLI: 1.6.0 Node: 8.2.1 OS: darwin x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-brow...

Opengraph URL: https://github.com/angular/angular-cli/issues/8794

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[app-shell] Doesn't work together with @angular/service-worker: \"Error: Hash mismatch (cacheBustedFetchFromNetwork)\" (+ explanation, + solution)","articleBody":"cc: @alxhub @StephenFluin \r\n\r\n### Versions\r\n```\r\nAngular CLI: 1.6.0\r\nNode: 8.2.1\r\nOS: darwin x64\r\nAngular: 5.1.0\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\n@angular/cli: 1.6.0\r\n@angular-devkit/build-optimizer: 0.0.35\r\n@angular-devkit/core: 0.0.22\r\n@angular-devkit/schematics: 0.0.41\r\n@ngtools/json-schema: 1.1.0\r\n@ngtools/webpack: 1.9.0\r\n@schematics/angular: 0.1.10\r\n@schematics/schematics: 0.0.10\r\ntypescript: 2.4.2\r\nwebpack: 3.10.0\r\n```\r\n\r\n### Repro steps\r\nGenerate a new app with --service-worker, then generate Universal app, then generate app-shell (if it fails, use workaround from https://github.com/angular/angular-cli/issues/8793) and run in the browser\r\n\r\n\r\n### Observed behavior\r\n\r\nAt /ngsw/state:\r\n```\r\nNGSW Debug Info:\r\n\r\nDriver state: EXISTING_CLIENTS_ONLY (Degraded due to failed initialization: Hash mismatch (cacheBustedFetchFromNetwork): http://localhost:8080/index.html: expected e809040220500c7210a197856aa3ecdf8ddd3618, got 100d6731232af53d7a592198666378360e223ba9 (after cache busting)\r\nError: Hash mismatch (cacheBustedFetchFromNetwork): http://localhost:8080/index.html: expected e809040220500c7210a197856aa3ecdf8ddd3618, got 100d6731232af53d7a592198666378360e223ba9 (after cache busting)\r\n    at PrefetchAssetGroup.cacheBustedFetchFromNetwork (http://localhost:8080/ngsw-worker.js:657:27)\r\n    at \u003canonymous>)\r\nLatest manifest hash: 0f59e15ff1beb35d4ff048bb6cc056e34917081f\r\nLast update check: 6m4s739u\r\n```\r\n\r\n### Desired behavior\r\nSame run/update SW behavior as with non-app-shell node\r\n\r\n\r\n\r\n### Mention any other details that might be useful (optional)\r\nIt happens because app-shell version of `index.html` generated after the generation of `ngsw.json`, where the hash of `index.html` located. So `ngsw.json` contains an incorrect hash, this is why @angular/service-worker throws this error after checking the integrity. Solution: make `ngsw.json` generation a last step in the flow.\r\n","author":{"url":"https://github.com/webmaxru","@type":"Person","name":"webmaxru"},"datePublished":"2017-12-07T23:11:00Z","url":"https://github.com/angular/angular-cli/issues/8794"}

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:94383f25-221d-7768-afbe-2a2b2ccf7b3a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF5C:14F601:124A74E:175B6EA:6B010A26
html-safe-nonce28b9aa6e457a22c560604faf38408b318fe60ae1abae4ecc026b0d0283833406
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjVDOjE0RjYwMToxMjRBNzRFOjE3NUI2RUE6NkIwMTBBMjYiLCJ2aXNpdG9yX2lkIjoiMTIyNTI4NjY1NDQ1ODEzNzEyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb25ece3568bf802ad99983bf9240e0c22025484229bece2d6e763b1e0004d53f
hovercard-subject-tagissue:280312515
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-cli/8794/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d2da8e63f1d03ccd6ca5cef9d33f1b0ffd862c96a324abc94a4256a92abd91bd/angular/angular-cli/issues/8794
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d2da8e63f1d03ccd6ca5cef9d33f1b0ffd862c96a324abc94a4256a92abd91bd/angular/angular-cli/issues/8794
og:image:altcc: @alxhub @StephenFluin Versions Angular CLI: 1.6.0 Node: 8.2.1 OS: darwin x64 Angular: 5.1.0 ... animations, common, compiler, compiler-cli, core, forms ... http, language-service, platform-brow...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewebmaxru
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/8794#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F8794
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-cli%2Fissues%2F8794
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-cli
Reloadhttps://github.com/angular/angular-cli/issues/8794
Reloadhttps://github.com/angular/angular-cli/issues/8794
Reloadhttps://github.com/angular/angular-cli/issues/8794
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8794
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8794
#11583https://github.com/angular/angular-cli/pull/11583
[app-shell] Doesn't work together with @angular/service-worker: "Error: Hash mismatch (cacheBustedFetchFromNetwork)" (+ explanation, + solution)https://github.com/angular/angular-cli/issues/8794#top
#11583https://github.com/angular/angular-cli/pull/11583
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
https://github.com/webmaxru
webmaxruhttps://github.com/webmaxru
on Dec 7, 2017https://github.com/angular/angular-cli/issues/8794#issue-280312515
@alxhubhttps://github.com/alxhub
@StephenFluinhttps://github.com/StephenFluin
#8793https://github.com/angular/angular-cli/issues/8793
https://github.com/bjornharvold
bjornharvoldhttps://github.com/bjornharvold
on Dec 8, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350170518
https://user-images.githubusercontent.com/641791/33751259-4c4f5934-dc0c-11e7-8a34-e2d76f8b4aa9.png
https://github.com/webmaxru
webmaxruhttps://github.com/webmaxru
on Dec 8, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350200807
https://github.com/cre8
cre8https://github.com/cre8
on Dec 8, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350217725
https://github.com/bjornharvold
bjornharvoldhttps://github.com/bjornharvold
on Dec 8, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350282753
https://user-images.githubusercontent.com/641791/33771121-7404dcdc-dc62-11e7-8dc4-bad48b73d9fc.png
https://user-images.githubusercontent.com/641791/33771122-743fae48-dc62-11e7-89f6-6d76d2c70b4f.png
https://github.com/priaculun
priaculunhttps://github.com/priaculun
on Dec 10, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350546205
@bjornharvoldhttps://github.com/bjornharvold
https://github.com/PoiScript
PoiScripthttps://github.com/PoiScript
on Dec 10, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350561299
PoiScripthttps://github.com/PoiScript
on Dec 10, 2017https://github.com/angular/angular-cli/issues/8794#event-1380425826
fix: remove Service Worker temporarily,https://github.com/PoiScript/solomon/commit/8b14deb30787e1c45df04ca714069a6d81c26712
8b14debhttps://github.com/PoiScript/solomon/commit/8b14deb30787e1c45df04ca714069a6d81c26712
https://github.com/PoiScript
PoiScripthttps://github.com/PoiScript
on Dec 11, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-350621839
something like thishttps://github.com/angular/universal-starter/blob/master/prerender.ts
@webmaxruhttps://github.com/webmaxru
https://github.com/whyvrafvr
whyvrafvrhttps://github.com/whyvrafvr
on Dec 13, 2017https://github.com/angular/angular-cli/issues/8794#issuecomment-351460072
@PoiScripthttps://github.com/PoiScript
@webmaxruhttps://github.com/webmaxru
filipesilvahttps://github.com/filipesilva
Broccohttps://github.com/Brocco
on Dec 21, 2017https://github.com/angular/angular-cli/issues/8794#event-1397970415
filipesilvahttps://github.com/filipesilva
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
on Dec 21, 2017https://github.com/angular/angular-cli/issues/8794#event-1397970773
https://github.com/pssubashps
pssubashpshttps://github.com/pssubashps
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357871880
https://github.com/whyvrafvr
whyvrafvrhttps://github.com/whyvrafvr
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357872379
https://github.com/pssubashps
pssubashpshttps://github.com/pssubashps
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357872833
https://github.com/whyvrafvr
whyvrafvrhttps://github.com/whyvrafvr
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357874975
https://github.com/bjornharvold
bjornharvoldhttps://github.com/bjornharvold
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357889339
https://github.com/NgxDev
NgxDevhttps://github.com/NgxDev
on Jan 16, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-357948547
@Skonxhttps://github.com/Skonx
#21636https://github.com/angular/angular/issues/21636
hanslhttps://github.com/hansl
Broccohttps://github.com/Brocco
on Feb 6, 2018https://github.com/angular/angular-cli/issues/8794#event-1460995371
https://github.com/stombeur
stombeurhttps://github.com/stombeur
on Feb 15, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-366014908
https://stackoverflow.com/a/48732922/4167438https://stackoverflow.com/a/48732922/4167438
https://github.com/huskerona
huskeronahttps://github.com/huskerona
on May 19, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-390396724
https://github.com/4F2E4A2E
4F2E4A2Ehttps://github.com/4F2E4A2E
on Jun 6, 2018https://github.com/angular/angular-cli/issues/8794#issuecomment-395068133
filipesilvahttps://github.com/filipesilva
on Jul 18, 2018https://github.com/angular/angular-cli/issues/8794#event-1740650471
fix(@angular-devkit/build-angular): re-run ngsw after modifications i…https://github.com/filipesilva/angular-cli/commit/0bf668b58ea91c66a079aaa83532a59fff30827b
0bf668bhttps://github.com/filipesilva/angular-cli/commit/0bf668b58ea91c66a079aaa83532a59fff30827b
fix(@angular-devkit/build-angular): re-run ngsw after modifications i…https://github.com/filipesilva/angular-cli/commit/cbb62f6a116346dfc385689800ca9fcb926904a6
cbb62f6https://github.com/filipesilva/angular-cli/commit/cbb62f6a116346dfc385689800ca9fcb926904a6
fix(@angular-devkit/build-angular): re-run ngsw after modifications i…https://github.com/filipesilva/angular-cli/commit/55cca33f98aaf4b04902e4ac0d7925cc5c714aad
55cca33https://github.com/filipesilva/angular-cli/commit/55cca33f98aaf4b04902e4ac0d7925cc5c714aad
fix(@angular-devkit/build-angular): re-run ngsw after modifications i…https://github.com/filipesilva/angular-cli/commit/9594ceb32e2b1ec7d0b78bcb3f686f81a916084a
9594cebhttps://github.com/filipesilva/angular-cli/commit/9594ceb32e2b1ec7d0b78bcb3f686f81a916084a
filipesilvahttps://github.com/filipesilva
completedhttps://github.com/angular/angular-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#11583https://github.com/angular/angular-cli/pull/11583
on Jul 20, 2018https://github.com/angular/angular-cli/issues/8794#event-1745610398
Voya100https://github.com/Voya100
on Aug 5, 2018https://github.com/angular/angular-cli/issues/8794#event-1771750434
Update angular dependencies to fix issue where ngsw was not run for a…https://github.com/Voya100/VoyaCode/commit/60ace86f6c05bbaf323d95819b98cce30e5e2b8e
60ace86https://github.com/Voya100/VoyaCode/commit/60ace86f6c05bbaf323d95819b98cce30e5e2b8e
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 8, 2019https://github.com/angular/angular-cli/issues/8794#issuecomment-529186696
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 Sep 8, 2019https://github.com/angular/angular-cli/issues/8794#event-2616660941
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/8794
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/8794
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22P1%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
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.