René's URL Explorer Experiment


Title: Service worker caches `Cache-Control: no-store` responses for asset group `urls` and serves them to the next user after logout · Issue #72163 · angular/angular · GitHub

Open Graph Title: Service worker caches `Cache-Control: no-store` responses for asset group `urls` and serves them to the next user after logout · Issue #72163 · angular/angular

X Title: Service worker caches `Cache-Control: no-store` responses for asset group `urls` and serves them to the next user after logout · Issue #72163 · angular/angular

Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description For URLs matched by an asset group's urls, handleFetch() answers from CacheStorage whenever it has a copy: angular/packages/servic...

Open Graph Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description For URLs matched by an asset group's urls, handleFetch() answers from CacheStorage wheneve...

X Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description For URLs matched by an asset group's urls, handleFetch() answers from CacheStorage whe...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service worker caches `Cache-Control: no-store` responses for asset group `urls` and serves them to the next user after logout","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nservice-worker\n\n### Is this a regression?\n\nNo\n\n### Description\n\n\nFor URLs matched by an asset group's `urls`, `handleFetch()` answers from CacheStorage whenever it has a copy:\n\nhttps://github.com/angular/angular/blob/53ef99a543e037b64c596e9c3e147cb365062cea/packages/service-worker/worker/src/assets.ts#L141-L164\n\nand `fetchAndCacheOnce()` keys in-flight requests by URL only, then stores the response without looking at `Cache-Control`:\n\nhttps://github.com/angular/angular/blob/53ef99a543e037b64c596e9c3e147cb365062cea/packages/service-worker/worker/src/assets.ts#L300-L336\n\nSo:\n\n- A response sent with `Cache-Control: no-store` is stored and served to later requests for that URL, whatever their credentials. On a shared browser, the next user gets the previous user's response. The [docs](https://angular.dev/ecosystem/service-workers/config) say `urls` resources \"are cached according to their HTTP headers\", and `no-store` means a cache [must not store the response](https://www.rfc-editor.org/rfc/rfc9111#section-5.2.2.5).\n- A request that arrives while another request for the same URL is in flight gets that request's response, even if one was sent with the user's cookie and the other with `credentials: 'omit'`.\n\nMinimal example:\n\n```json\n{ \"name\": \"api\", \"installMode\": \"lazy\", \"resources\": { \"urls\": [\"/api/**\"] } }\n```\n\n```ts\nawait firstValueFrom(http.post('/auth/login', { user: 'alice' }));\nawait firstValueFrom(http.get('/api/me'));\n\nawait firstValueFrom(http.post('/auth/logout', null));\nawait firstValueFrom(http.get('/api/me', { credentials: 'omit', cache: 'no-store' }));\n\nawait firstValueFrom(http.post('/auth/login', { user: 'bob' }));\nawait firstValueFrom(http.get('/api/me'));\n```\n\n`/api/me` is sent with `Cache-Control: no-store, private` and `Vary: Cookie`, and returns `{\"user\":null}` without a session. The last two requests both get alice's response:\n\n```json\n{ \"user\": \"alice\", \"email\": \"alice@example.test\", \"request\": 1 }\n```\n\nBob's request has no options, so the request's `credentials` and `cache` don't matter here. `Vary: Cookie` doesn't help either: asset groups always match with `ignoreVary: true`, and requests in the worker don't carry the `Cookie` header.\n\nThe requests above:\n\n| Request                                                                | Service worker bypassed | Service worker active |\n| ---------------------------------------------------------------------- | ----------------------- | --------------------- |\n| `GET /api/me` as alice                                                 | alice, request 1        | alice, request 1      |\n| `GET /api/me` after logout, `credentials: 'omit'`, `cache: 'no-store'` | `null`, request 2       | alice, request 1      |\n| `GET /api/me` as bob                                                   | bob, request 3          | alice, request 1      |\n\nThen, as alice, a URL that isn't cached yet, and 50 ms later the same URL with `credentials: 'omit'`:\n\n| Request                                     | Service worker bypassed | Service worker active |\n| ------------------------------------------- | ----------------------- | --------------------- |\n| `GET /api/me?race=…`                        | alice, request 4        | alice, request 2      |\n| `GET /api/me?race=…`, `credentials: 'omit'` | `null`, request 5       | alice, request 2      |\n\nBoth cases use the setup of GHSA-95qp-cmmw-mgqv (precondition 2), but neither is the request rebuilding fixed in #68904. That request now keeps `credentials: 'omit'` and `cache`, and the server never gets a cookie for those requests: in both cases the worker answers without sending them. The advisory also notes that CacheStorage is governed by `ngsw-config.json` and `ngsw-bypass`, not `Request.cache`. The first case is about the response's own `Cache-Control`, which the docs say `urls` follow, and the second one doesn't come from CacheStorage.\n\n### Please provide a link to a minimal reproduction of the bug\n\nSee https://github.com/SkyZeroZx/ng-service-worker-cache-bypass\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI       : 22.3.0\nAngular           : 22.3.0\nNode.js           : 24.16.0\nPackage Manager   : npm 11.13.0\nOperating System  : win32 x64\n\n┌───────────────────────────┬───────────────────┬───────────────────┐\n│ Package                   │ Installed Version │ Requested Version │\n├───────────────────────────┼───────────────────┼───────────────────┤\n│ @angular/build            │ 22.3.0            │ 22.3.0            │\n│ @angular/cli              │ 22.3.0            │ 22.3.0            │\n│ @angular/common           │ 22.3.0            │ 22.3.0            │\n│ @angular/compiler         │ 22.3.0            │ 22.3.0            │\n│ @angular/compiler-cli     │ 22.3.0            │ 22.3.0            │\n│ @angular/core             │ 22.3.0            │ 22.3.0            │\n│ @angular/platform-browser │ 22.3.0            │ 22.3.0            │\n│ @angular/service-worker   │ 22.3.0            │ 22.3.0            │\n│ rxjs                      │ 7.8.2             │ ~7.8.0            │\n│ typescript                │ 6.0.3             │ ~6.0.2            │\n└───────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else?\n\nI think we can consider this a bypass of https://github.com/advisories/GHSA-95qp-cmmw-mgqv","author":{"url":"https://github.com/SkyZeroZx","@type":"Person","name":"SkyZeroZx"},"datePublished":"2026-11-22T19:51:29Z","url":"https://github.com/angular/angular/issues/72163"}

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:d23a535d-069a-916b-6957-f9e5ca49b7df
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB81E:107A1:84151E:ABC57E:6B062DC0
html-safe-nonce6ea3b0c349c1d80c1541c95343b72e7cea762c03312ba531d93f797a3609a601
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODFFOjEwN0ExOjg0MTUxRTpBQkM1N0U6NkIwNjJEQzAiLCJ2aXNpdG9yX2lkIjoiNDc0MTgyNTE4NzE0OTEzMTIwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdb0d8bd86e45fcc3f1194ba0ea26a84fcf76a9a3e55df477c5be00fa0cda3aca
hovercard-subject-tagissue:6546968179
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/72163/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9d29f076b21ef5f1587689c00acea7e75008f8abef1f3d2448afeeaffb73768c/angular/angular/issues/72163
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9d29f076b21ef5f1587689c00acea7e75008f8abef1f3d2448afeeaffb73768c/angular/angular/issues/72163
og:image:altWhich @angular/* package(s) are the source of the bug? service-worker Is this a regression? No Description For URLs matched by an asset group's urls, handleFetch() answers from CacheStorage wheneve...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSkyZeroZx
hostnamegithub.com
expected-hostnamegithub.com
None7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3
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
release494ea0bb1e0feef734a83e2628697647755e8864
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/72163#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F72163
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%2F72163
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/72163
Reloadhttps://github.com/angular/angular/issues/72163
Reloadhttps://github.com/angular/angular/issues/72163
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues831 (831)https://github.com/angular/angular/issues
Pull requests123 (123)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/72163
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/72163
#69302https://github.com/angular/angular/pull/69302
Service worker caches Cache-Control: no-store responses for asset group urls and serves them to the next user after logouthttps://github.com/angular/angular/issues/72163#top
#69302https://github.com/angular/angular/pull/69302
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
needsTriagehttps://github.com/angular/angular/milestone/83
https://github.com/SkyZeroZx
SkyZeroZxhttps://github.com/SkyZeroZx
on Nov 22, 2026https://github.com/angular/angular/issues/72163#issue-6546968179
angular/packages/service-worker/worker/src/assets.tshttps://github.com/angular/angular/blob/53ef99a543e037b64c596e9c3e147cb365062cea/packages/service-worker/worker/src/assets.ts#L141-L164
53ef99ahttps://github.com/angular/angular/commit/53ef99a543e037b64c596e9c3e147cb365062cea
angular/packages/service-worker/worker/src/assets.tshttps://github.com/angular/angular/blob/53ef99a543e037b64c596e9c3e147cb365062cea/packages/service-worker/worker/src/assets.ts#L300-L336
53ef99ahttps://github.com/angular/angular/commit/53ef99a543e037b64c596e9c3e147cb365062cea
docshttps://angular.dev/ecosystem/service-workers/config
must not store the responsehttps://www.rfc-editor.org/rfc/rfc9111#section-5.2.2.5
GHSA-95qp-cmmw-mgqvhttps://github.com/advisories/GHSA-95qp-cmmw-mgqv
#68904https://github.com/angular/angular/pull/68904
https://github.com/SkyZeroZx/ng-service-worker-cache-bypasshttps://github.com/SkyZeroZx/ng-service-worker-cache-bypass
GHSA-95qp-cmmw-mgqvhttps://github.com/advisories/GHSA-95qp-cmmw-mgqv
angular-robothttps://github.com/apps/angular-robot
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
on Nov 22, 2026https://github.com/angular/angular/issues/72163#event-36943967632
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 22, 2026https://github.com/angular/angular/issues/72163#event-36943969039
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Nov 22, 2026https://github.com/angular/angular/issues/72163#event-36943969225
SkyZeroZxhttps://github.com/SkyZeroZx
on Nov 22, 2026https://github.com/angular/angular/issues/72163#event-36944118458
fix(service-worker): avoid caching private unhashed assetshttps://github.com/SkyZeroZx/angular/commit/cd8c27aa6bd49e0eafa43f0bf83e66e6534e108b
https://docs.github.com/articles/closing-issues-via-commit-messages
cd8c27ahttps://github.com/SkyZeroZx/angular/commit/cd8c27aa6bd49e0eafa43f0bf83e66e6534e108b
fix(service-worker): deduplicate only hashed asset fetcheshttps://github.com/SkyZeroZx/angular/commit/1eb19a1861f084a316eac55d3799bcf76ad5ff47
https://docs.github.com/articles/closing-issues-via-commit-messages
1eb19a1https://github.com/SkyZeroZx/angular/commit/1eb19a1861f084a316eac55d3799bcf76ad5ff47
fix(service-worker): avoid caching no-store unhashed assetshttps://github.com/SkyZeroZx/angular/commit/d821b6add45730dd324e436e05765d641880081e
https://docs.github.com/articles/closing-issues-via-commit-messages
d821b6ahttps://github.com/SkyZeroZx/angular/commit/d821b6add45730dd324e436e05765d641880081e
fix(service-worker): do not share in-flight unhashed requests with di…https://github.com/SkyZeroZx/angular/commit/cefa8db3b12c0d14cbeca7f0603035294c81eeeb
https://docs.github.com/articles/closing-issues-via-commit-messages
cefa8dbhttps://github.com/SkyZeroZx/angular/commit/cefa8db3b12c0d14cbeca7f0603035294c81eeeb
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/72163
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/72163
area: service-workerhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
needsTriageNo due datehttps://github.com/angular/angular/milestone/83
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.