Service Worker Config File

The service worker configuration file provides several properties that allows developers to specify which caching strategies to implement and which resources to target.

Service worker configuration file

This is one of the essential files added by the @angular/pwa schematic because the service worker configuration file (ngsw-config.json) allows specifying the different caching strategies for the assets and network responses.

Get hands-on with 1400+ tech skills courses.