You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide extension points in order to add custom behavior to the service worker file generated by the angular cli. #21197
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
One should be able to add custom behavior to angular-generated service workers (i.e. /ngsw-worker.js). For instance what if I want to add business logic to the service worker. It would be nice to provide extension points in order to achieve this and document them.
EDIT (gkalpak): Other related issues/issues that could be fixed by this: #24387, #26413, #30195, #46984
Reacted by balteo, niwtro, Adrian Fâciu, Lars Wiedemann, Juanlu, Voya, Peter Ahlers, Ajay Navgale, Vasily Liaskovsky, Serhii Siryk and 16 more
changed the title [-]Provide extension points in order to add custom behavior to service worker file generated by the angular cli.[/-][+]Provide extension points in order to add custom behavior to the service worker file generated by the angular cli.[/+]on Dec 28, 2017
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
@jessicajaniuk thanks for marking this as under consideration, I would like to work on this to move it forward, I was thinking about integrating it with workbox, to avoid redundant work, there mechanism of registerRoute seems very well suited for this use case. And their code could be executed after checking dataGroups in:
Activity
[-]Provide extension points in order to add custom behavior to service worker file generated by the angular cli.[/-][+]Provide extension points in order to add custom behavior to the service worker file generated by the angular cli.[/+]angular-robot commentedon Jun 5, 2021
Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.
Find more details about Angular's feature request process in our documentation.
angular-robot commentedon Jun 26, 2021
Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.
We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
You can find more details about the feature request process in our documentation.
yelhouti commentedon Dec 20, 2022
@jessicajaniuk thanks for marking this as
under consideration, I would like to work on this to move it forward, I was thinking about integrating it with workbox, to avoid redundant work, there mechanism of registerRoute seems very well suited for this use case. And their code could be executed after checking dataGroups in:angular/packages/service-worker/worker/src/app-version.ts
Line 183 in 22871e9
It can even, IMO, replace the dataGroup implementation since AFAICT dataGroup is one of the uses cases covered by the caching startegies of workbox.
Also, once workbox is integrated, customisations could be as simple multiple calls of registerRoute in files referenced in angular.json
Other entrypoint can also be added later for uses cases that different from handling
fetchevents.JeanMeche commentedon Aug 27, 2025
Per #63364, we won't be addressing this issue.
The message is also visible here: https://angular.dev/ecosystem/service-workers
angular-automatic-lock-bot commentedon Sep 27, 2025
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.