@work-bee/core
v0.2.0
Published
workbee service worker strategies
Maintainers
Readme
Install
npm install @work-bee/coreData & Privacy
The core module uses the Cache API to store HTTP responses for performance. Understanding what is cached is important for privacy compliance.
What is stored: Full HTTP responses, which may contain user-specific data depending on the API.
Retention: Controlled by Cache-Control response headers and the cacheControlMaxAge config option.
Cleanup:
- Call
cachesDelete()on user logout to clear cached data for authenticated routes - Call
cachesDeleteExpired()periodically to remove stale cache entries - Users can manually purge via browser DevTools > Application > Storage > Clear site data
Developer responsibility:
- Be aware that cached responses for authenticated endpoints may contain user-specific data
- Use appropriate
Cache-Controlheaders to limit retention of sensitive responses - Implement logout cleanup by calling
cachesDelete()when the user's session ends
License
Licensed under MIT License. Copyright (c) 2026 will Farrell and the Workbee contributors.
