René's URL Explorer Experiment


Title: ServiceWorker doesn't update `index.html` when headers (e.g. CSP) change · Issue #37390 · angular/angular · GitHub

Open Graph Title: ServiceWorker doesn't update `index.html` when headers (e.g. CSP) change · Issue #37390 · angular/angular

X Title: ServiceWorker doesn't update `index.html` when headers (e.g. CSP) change · Issue #37390 · angular/angular

Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker:9.1.7 Is this a regression? Nope, seems to always been there Description Supposition: It seems that the service worker use body response only to generat...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker:9.1.7 Is this a regression? Nope, seems to always been there Description Supposition: It seems that the service ...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker:9.1.7 Is this a regression? Nope, seems to always been there Description Supposition: It seems that the service ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ServiceWorker doesn't update `index.html` when headers (e.g. CSP) change","articleBody":"\u003c!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅\r\n\r\nOh hi there! 😄\r\n\r\nTo expedite issue processing please search open and closed issues before submitting a new one.\r\nExisting issues often contain information about workarounds, resolution, or progress updates.\r\n\r\n🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->\r\n\r\n\r\n# 🐞 bug report\r\n\r\n### Affected Package\r\n\r\nThe issue is caused by package @angular/service-worker:9.1.7\r\n\r\n### Is this a regression?\r\n\r\nNope, seems to always been there\r\n\r\n\r\n### Description\r\n\r\nSupposition: It seems that the service worker use body response only to generate its hash, corresponding to versioned resources ; update some headers server side doesn't update these hashes and resources are served with old headers.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nWhen deploying Angular application with service-worker (default configuration):\r\n- Load the main page in a browser\r\n- Service worker do its job and cache resources (including index.html)\r\n- Change global resources header (in my case, nginx configuration, like `add_header X-OneThing \"hello there\"`\r\n- Let the service worker try to do a cache bust\r\n- **Take a look on the answer : no update detected**\r\n- Refresh the page : **the new header isn't applied** (but the ngsw.json HTTP call got it, of course)\r\n\r\nSorry but cannot do a stackblitz with that :/\r\n\r\n\r\n## 🔥 Exception or Error\r\n\r\nNone\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\n> ng \"version\"\r\n\r\n\r\n     _                      _                 ____ _     ___\r\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n                |___/\r\n    \r\n\r\nAngular CLI: 9.1.6\r\nNode: 12.14.1\r\nOS: linux x64\r\n\r\nAngular: 9.1.7\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.901.6\r\n@angular-devkit/build-angular     0.901.6\r\n@angular-devkit/build-optimizer   0.901.6\r\n@angular-devkit/build-webpack     0.901.6\r\n@angular-devkit/core              9.1.6\r\n@angular-devkit/schematics        9.1.6\r\n@angular/cli                      9.1.6\r\n@angular/platform-server          9.1.9\r\n@angular/service-worker           9.1.9\r\n@ngtools/webpack                  9.1.6\r\n@schematics/angular               9.1.6\r\n@schematics/update                0.901.6\r\nrxjs                              6.5.5\r\ntypescript                        3.8.3\r\nwebpack                           4.42.0\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/wibimaster","@type":"Person","name":"wibimaster"},"datePublished":"2020-06-02T12:06:24Z","url":"https://github.com/angular/angular/issues/37390"}

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:cee91623-2a49-6650-a5c5-883633b60c27
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9068:2AAD2E:E32DED:130335D:6B01085C
html-safe-noncee292628af4c72ed2e269c971cd7d8a401f7993804ae6c3b49ffae77fd1fa7feb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MDY4OjJBQUQyRTpFMzJERUQ6MTMwMzM1RDo2QjAxMDg1QyIsInZpc2l0b3JfaWQiOiI2NjI3MTE4NDIwNTEwOTY3OTAwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac51e8495e3548fe9b99c1f701b60b5493e15602092c236c365f65cc493e31e854
hovercard-subject-tagissue:629149584
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/37390/issue_layout
twitter:imagehttps://opengraph.githubassets.com/60c21a24eb7748460b1258f8468918deb2c3dc81adb5ef7f3c82f9b698e7f54d/angular/angular/issues/37390
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/60c21a24eb7748460b1258f8468918deb2c3dc81adb5ef7f3c82f9b698e7f54d/angular/angular/issues/37390
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/service-worker:9.1.7 Is this a regression? Nope, seems to always been there Description Supposition: It seems that the service ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamewibimaster
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/37390#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F37390
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%2F37390
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/37390
Reloadhttps://github.com/angular/angular/issues/37390
Reloadhttps://github.com/angular/angular/issues/37390
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)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/37390
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/37390
ServiceWorker doesn't update index.html when headers (e.g. CSP) changehttps://github.com/angular/angular/issues/37390#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
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
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/wibimaster
wibimasterhttps://github.com/wibimaster
on Jun 2, 2020https://github.com/angular/angular/issues/37390#issue-629149584
Nexthttps://github.com/angular/angular/issues/37390?timeline_page=1
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
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 2, 2020https://github.com/angular/angular/issues/37390#event-3397357959
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jun 2, 2020https://github.com/angular/angular/issues/37390#event-3397358060
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jun 2, 2020https://github.com/angular/angular/issues/37390#issuecomment-637552990
@wibimasterhttps://github.com/wibimaster
gkalpakhttps://github.com/gkalpak
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Jun 2, 2020https://github.com/angular/angular/issues/37390#event-3397743135
https://github.com/wibimaster
wibimasterhttps://github.com/wibimaster
on Jun 2, 2020https://github.com/angular/angular/issues/37390#issuecomment-637568643
@gkalpakhttps://github.com/gkalpak
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jun 2, 2020https://github.com/angular/angular/issues/37390#issuecomment-637628069
https://github.com/wibimaster
wibimasterhttps://github.com/wibimaster
on Jun 2, 2020https://github.com/angular/angular/issues/37390#issuecomment-637660018
gkalpakhttps://github.com/gkalpak
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
needs reproductionThis issue needs a reproduction in order for the team to investigate furtherhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22needs%20reproduction%22
on Jun 5, 2020https://github.com/angular/angular/issues/37390#event-3412199256
gkalpakhttps://github.com/gkalpak
on Jun 5, 2020https://github.com/angular/angular/issues/37390#event-3412203186
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jun 5, 2020https://github.com/angular/angular/issues/37390#issuecomment-639625324
ngsw.json > indexhttps://v9.angular.io/guide/service-worker-config#index
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/37390#event-6239499758
https://github.com/Masinac
Masinachttps://github.com/Masinac
on Dec 21, 2022https://github.com/angular/angular/issues/37390#issuecomment-1361860989
https://github.com/nthornton2010
nthornton2010https://github.com/nthornton2010
on Sep 6, 2023https://github.com/angular/angular/issues/37390#issuecomment-1708841003
https://github.com/jspivack
jspivackhttps://github.com/jspivack
on Sep 21, 2023https://github.com/angular/angular/issues/37390#issuecomment-1729925024
https://github.com/pmachauxOrigin8Cares
pmachauxOrigin8Careshttps://github.com/pmachauxOrigin8Cares
on Mar 21, 2024https://github.com/angular/angular/issues/37390#issuecomment-2012213625
https://github.com/cxyblood21
cxyblood21https://github.com/cxyblood21
on Jul 12, 2024https://github.com/angular/angular/issues/37390#issuecomment-2226197759
https://github.com/edwinhilgersom
edwinhilgersomhttps://github.com/edwinhilgersom
on Aug 2, 2024https://github.com/angular/angular/issues/37390#issuecomment-2265100411
https://github.com/bhaskerchari
bhaskercharihttps://github.com/bhaskerchari
on Aug 2, 2024https://github.com/angular/angular/issues/37390#issuecomment-2265278490
https://github.com/edwinhilgersom
edwinhilgersomhttps://github.com/edwinhilgersom
on Aug 5, 2024https://github.com/angular/angular/issues/37390#issuecomment-2268657929
https://github.com/janwidmer
janwidmerhttps://github.com/janwidmer
on Mar 12, 2025https://github.com/angular/angular/issues/37390#issuecomment-2718320754
https://private-user-images.githubusercontent.com/3381820/421956897-b6ed0247-9d2e-40cf-9a05-069ae161c2ef.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTUyMzAwODksIm5iZiI6MTc5NTIyOTc4OSwicGF0aCI6Ii8zMzgxODIwLzQyMTk1Njg5Ny1iNmVkMDI0Ny05ZDJlLTQwY2YtOWEwNS0wNjlhZTE2MWMyZWYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MTEyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjExMjFUMDI1NjI5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTYyNWM4NzdmZGQ3NDU0MzUwNzg4NWZmMzAyZDk1NzMxOGJkMDBkMzJmNzZlY2M4MmNhZTAyMjViZmUxOGU1ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmcmVzcG9uc2UtY29udGVudC10eXBlPWltYWdlJTJGcG5nIn0.N2URffp-HqHZX1hkn96AM875_-TZvAh3Gzk_yGfrJDw
#35491https://github.com/angular/angular/issues/35491
@dsm0880https://github.com/dsm0880
@gkalpakhttps://github.com/gkalpak
@edwinhilgersomhttps://github.com/edwinhilgersom
https://github.com/montella1507
montella1507https://github.com/montella1507
on May 19, 2025https://github.com/angular/angular/issues/37390#issuecomment-2889997214
https://github.com/angular/service-worker-builds/blob/main/ngsw-worker.jshttps://github.com/angular/service-worker-builds/blob/main/ngsw-worker.js
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 29, 2025https://github.com/angular/angular/issues/37390#issuecomment-3236661429
#63364https://github.com/angular/angular/pull/63364
https://angular.dev/ecosystem/service-workershttps://angular.dev/ecosystem/service-workers
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 29, 2025https://github.com/angular/angular/issues/37390#event-19409605941
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/37390#issuecomment-3344434123
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/37390#event-19971533957
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/37390
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/37390
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
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
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: use-casehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20use-case%22
workaround2: non-obvioushttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22workaround2%3A%20non-obvious%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.