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
There is no way to customize the service worker #63198
Hi,
The feature request is a bit vague.
With provideServiceWorker you can provide your own impelementation of the service worker.
Also via the ngsw-config.json you can configure the file that provided automatically with the CLI integration.
You can provide your own service worker, but it must be a JavaScript file, which means you have to either write the service worker in JavaScript or setup another separate build pipeline to generate it, and there is no way to extend or pick and choose functionality from the Angular service worker.
@JeanMeche not sure if it is related but as far as i know...
Angular NGSW-worker has not been working correctly with angular "native" I18N (one folder per lang) for years... and every solution i have found is to modify NGSW worker?
There have been some problems with i18N / pwa and redirects.
The ngsw-config.json JSON configuration file specifies which files and data URLs the Angular service worker should cache and how it should update the cached files and data.
Activity
olfek commentedon Aug 16, 2025
@alxhub - or maybe I'm missing something?
JeanMeche commentedon Aug 17, 2025
Hi,
The feature request is a bit vague.
With
provideServiceWorkeryou can provide your own impelementation of the service worker.Also via the
ngsw-config.jsonyou can configure the file that provided automatically with the CLI integration.What use case are you looking to address ?
olfek commentedon Aug 17, 2025
You can provide your own service worker, but it must be a JavaScript file, which means you have to either write the service worker in JavaScript or setup another separate build pipeline to generate it, and there is no way to extend or pick and choose functionality from the Angular service worker.
montella1507 commentedon Aug 19, 2025
@JeanMeche not sure if it is related but as far as i know...
Angular NGSW-worker has not been working correctly with angular "native" I18N (one folder per lang) for years... and every solution i have found is to modify NGSW worker?
There have been some problems with i18N / pwa and redirects.
olfek commentedon Aug 19, 2025
Quick update, since writing this, I am now:
anisabboud commentedon Aug 21, 2025
https://angular.dev/ecosystem/service-workers/config
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.