mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -05:00
The applicationMaxAge docs and schema description read as if the age were counted from when files were cached on the device. The service worker actually compares the age against the manifest timestamp, which is set when ngsw.json is generated at build time. Once the build is older than applicationMaxAge, every request bypasses the cache and goes to the network, even when no newer version has been deployed, so the application does not work offline until a new build is deployed. When the property is omitted, there is no maximum age. Update the guide and the JSON schema description to state this. The format check requires every touched file to be formatted, so this also formats `schema.json`, which was not formatted on main. Fixes #71720
@angular/service-worker
IMPORTANT: The Angular Service Worker is a basic caching utility for simple offline support with a limited featureset. We will not be accepting any new features or bug fixes other than security fixes. For more advanced caching and offline capabilities, we recommend exploring native browser APIs directly.
Implements a service worker for Angular apps.
For more information, see the @angular/service-worker API documentation.