René's URL Explorer Experiment


Title: [Feature] Allow to clear Service Worker cache · Issue #24008 · angular/angular · GitHub

Open Graph Title: [Feature] Allow to clear Service Worker cache · Issue #24008 · angular/angular

X Title: [Feature] Allow to clear Service Worker cache · Issue #24008 · angular/angular

Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [X] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submi...

Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [X] Feature request [ ] Documentation issue or request [ ...

X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [X] Feature request [ ] Documentation issue or reques...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Feature] Allow to clear Service Worker cache","articleBody":"\u003c!--\r\nPLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.\r\n\r\nISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.\r\n-->\r\n\r\n## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" -->\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[ ] Bug report  \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Performance issue\r\n[X] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n[ ] Other... Please describe:\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\nAs a developer, I clear the cookies, data and relevant user information from the browser when the user logs out.\r\nFor privacy and security reasons and to avoid keeping relevant data in the browser's cache, I delete all the relevant data of the user from the cookies and localStorage.\r\nHowever I cannot do the same from the service worker cache.\r\n\r\n\r\n## Expected behavior\r\nI'd like to be able to clear the Service Worker cache whenever a user logs out, to make sure no other user has access to the cache in any way.\r\n\r\nThis could be added as a function in the Service Worker provider.\r\n\r\n## What is the motivation / use case for changing the behavior?\r\n\r\nA problem is that if a user [bob] does log in with his/her user account after a logout from another user [alice], the cache of the Service Worker might answer with data from alice's requests, having a privacy problem here... The only difference between the requests is the access Token, and is set in the header, which is not taken in account when caching in the service worker. Thus a properly made request while being offline, would be able to answer the data from another user.\r\n\r\nAnother problem is that a user could access the cache from the browser web tools and check the contents of the cache, even after the user has logged out.\r\n\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 6.0.2\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\nBrowser:\r\n- All\r\n","author":{"url":"https://github.com/Sturgelose","@type":"Person","name":"Sturgelose"},"datePublished":"2018-05-19T11:05:12Z","url":"https://github.com/angular/angular/issues/24008"}

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:e4cf37e1-23c8-940c-986e-ddbdd381a950
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9464:2DBB21:A80B4B:E18A6C:6B00F01A
html-safe-nonce55ec2ad156d4385757c53eeedd78ab212601be07e455d5e5840c4ef109129154
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDY0OjJEQkIyMTpBODBCNEI6RTE4QTZDOjZCMDBGMDFBIiwidmlzaXRvcl9pZCI6IjM1NTYzODIyNjMxOTEwNzI3OTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac23f2de1daccfea440e4583a0700a80e9299ec025c36048eb12ca00d83005a485
hovercard-subject-tagissue:324621600
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/24008/issue_layout
twitter:imagehttps://opengraph.githubassets.com/85fe06c71a96d80b9bd943193cf7b86291c5178b01ca4836ce8fa8d8c8d575f3/angular/angular/issues/24008
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85fe06c71a96d80b9bd943193cf7b86291c5178b01ca4836ce8fa8d8c8d575f3/angular/angular/issues/24008
og:image:altI'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [ ] Performance issue [X] Feature request [ ] Documentation issue or request [ ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameSturgelose
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
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
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/24008#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F24008
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%2F24008
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/24008
Reloadhttps://github.com/angular/angular/issues/24008
Reloadhttps://github.com/angular/angular/issues/24008
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests140 (140)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/24008
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/24008
[Feature] Allow to clear Service Worker cachehttps://github.com/angular/angular/issues/24008#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
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/Sturgelose
Sturgelosehttps://github.com/Sturgelose
on May 19, 2018https://github.com/angular/angular/issues/24008#issue-324621600
Nexthttps://github.com/angular/angular/issues/24008?timeline_page=1
gkalpakhttps://github.com/gkalpak
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
target: patchThis PR is targeted for the next patch releasehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22target%3A%20patch%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
on May 21, 2018https://github.com/angular/angular/issues/24008#event-1636675753
ngbothttps://github.com/apps/ngbot
Backloghttps://github.com/angular/angular/milestone/82
on May 21, 2018https://github.com/angular/angular/issues/24008#event-1636675819
gkalpakhttps://github.com/gkalpak
target: patchThis PR is targeted for the next patch releasehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22target%3A%20patch%22
on May 21, 2018https://github.com/angular/angular/issues/24008#event-1636675956
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 21, 2018https://github.com/angular/angular/issues/24008#issuecomment-390619569
https://github.com/Sturgelose
Sturgelosehttps://github.com/Sturgelose
on May 21, 2018https://github.com/angular/angular/issues/24008#issuecomment-390626203
https://github.com/Sturgelose
Sturgelosehttps://github.com/Sturgelose
on May 21, 2018https://github.com/angular/angular/issues/24008#issuecomment-390630507
https://developer.mozilla.org/en-US/docs/Web/API/Cache/deletehttps://developer.mozilla.org/en-US/docs/Web/API/Cache/delete
https://stackoverflow.com/a/28513836https://stackoverflow.com/a/28513836
https://github.com/josephliccini
josephliccinihttps://github.com/josephliccini
on May 21, 2018https://github.com/angular/angular/issues/24008#issuecomment-390720592
@Sturgelosehttps://github.com/Sturgelose
https://github.com/GoogleChrome/workboxhttps://github.com/GoogleChrome/workbox
https://medium.com/progressive-web-apps/using-workbox-2-and-angular-5-to-create-a-progressive-web-app-part-1-app-shell-b14f9872384ahttps://medium.com/progressive-web-apps/using-workbox-2-and-angular-5-to-create-a-progressive-web-app-part-1-app-shell-b14f9872384a
GoogleChrome/workbox#1365https://github.com/GoogleChrome/workbox/issues/1365
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 22, 2018https://github.com/angular/angular/issues/24008#issuecomment-390986278
@josephliccinihttps://github.com/josephliccini
#24008 (comment)https://github.com/angular/angular/issues/24008#issuecomment-390619569
https://github.com/Sturgelose
Sturgelosehttps://github.com/Sturgelose
on May 24, 2018https://github.com/angular/angular/issues/24008#issuecomment-391692577
https://github.com/DaSchTour
DaSchTourhttps://github.com/DaSchTour
on Jun 13, 2018https://github.com/angular/angular/issues/24008#issuecomment-396912749
https://github.com/blackblood19
blackblood19https://github.com/blackblood19
on Oct 5, 2018https://github.com/angular/angular/issues/24008#issuecomment-427469271
@Sturgelosehttps://github.com/Sturgelose
@gkalpakhttps://github.com/gkalpak
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Oct 6, 2018https://github.com/angular/angular/issues/24008#issuecomment-427567352
#24008 (comment)https://github.com/angular/angular/issues/24008#issuecomment-390619569
#26042https://github.com/angular/angular/pull/26042
https://github.com/blackblood19
blackblood19https://github.com/blackblood19
on Oct 7, 2018https://github.com/angular/angular/issues/24008#issuecomment-427658029
@gkalpakhttps://github.com/gkalpak
https://github.com/onderceylan
onderceylanhttps://github.com/onderceylan
on Jun 2, 2021https://github.com/angular/angular/issues/24008#issuecomment-852981169
angular-robothttps://github.com/apps/angular-robot
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%22
on Jun 5, 2021https://github.com/angular/angular/issues/24008#event-4846761233
https://github.com/gabrielstellini
gabrielstellinihttps://github.com/gabrielstellini
on Mar 23, 2022https://github.com/angular/angular/issues/24008#issuecomment-1076446228
official chromium bugreporthttps://bugs.chromium.org/p/chromium/issues/detail?id=688268#c6
w3c issuehttps://github.com/w3c/ServiceWorker/issues/1066
JeanMechehttps://github.com/JeanMeche
on Jan 5, 2023https://github.com/angular/angular/issues/24008#event-8158234562
docs: remove onInit from Tour Of Heroes.https://github.com/JeanMeche/angular/commit/8810895e48a53231a725cf74826fe5efea6b8e47
8810895https://github.com/JeanMeche/angular/commit/8810895e48a53231a725cf74826fe5efea6b8e47
alxhubhttps://github.com/alxhub
on Jan 5, 2023https://github.com/angular/angular/issues/24008#event-8164578775
docs: remove onInit from Tour Of Heroes. (#48576)https://github.com/angular/angular/commit/4bca3fed19b06fcd1c1cff7da9995acd90b9a018
#48576https://github.com/angular/angular/pull/48576
4bca3fehttps://github.com/angular/angular/commit/4bca3fed19b06fcd1c1cff7da9995acd90b9a018
docs: remove onInit from Tour Of Heroes. (#48576)https://github.com/angular/angular/commit/b3d0a2717e8d737488b2407fc3faae2d9085c6dd
#48576https://github.com/angular/angular/pull/48576
b3d0a27https://github.com/angular/angular/commit/b3d0a2717e8d737488b2407fc3faae2d9085c6dd
docs: remove onInit from Tour Of Heroes. (#48576)https://github.com/angular/angular/commit/51ff78143d1ac34ab0b7a626e833a959c1e3f1d0
#48576https://github.com/angular/angular/pull/48576
51ff781https://github.com/angular/angular/commit/51ff78143d1ac34ab0b7a626e833a959c1e3f1d0
trekladyonehttps://github.com/trekladyone
on Feb 1, 2023https://github.com/angular/angular/issues/24008#event-8415363585
docs: remove onInit from Tour Of Heroes. (angular#48576)https://github.com/trekladyone/angular/commit/d959d1abb02021169b65c996edb61dfc753a75ae
angular#48576https://github.com/angular/angular/pull/48576
d959d1ahttps://github.com/trekladyone/angular/commit/d959d1abb02021169b65c996edb61dfc753a75ae
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 29, 2025https://github.com/angular/angular/issues/24008#issuecomment-3236606805
#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/24008#event-19409346048
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/24008#issuecomment-3344433966
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/24008#event-19971533024
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/24008
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/24008
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
featureLabel used to distinguish feature request from other issueshttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%22
feature: under considerationFeature request for which voting has completed and the request is now under considerationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22feature%3A%20under%20consideration%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.