# service-worker > Service worker implementation details including caching strategy, request handling, and cache management for PWA functionality - Author: Felix Guerin - Repository: f-elix/ironkit - Version: 20260202214649 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/f-elix/ironkit - Web: https://mule.run/skillshub/@@f-elix/ironkit~service-worker:20260202214649 --- --- name: service-worker description: Service worker implementation details including caching strategy, request handling, and cache management for PWA functionality --- # Service Worker Implementation The [src/service-worker.ts](mdc:src/service-worker.ts) implements a Progressive Web App (PWA) service worker with the following features: ## Caching Strategy - Caches all static assets (build files, static files, prerendered pages) - Uses a network-first strategy for dynamic content - Falls back to cached content when offline - Cache versioning using build version ## Request Handling - Only handles GET requests - Caches successful (200) responses for non-extension URLs - Implements skip waiting for immediate service worker updates ## Cache Management - Automatically cleans up old caches during activation - Creates new cache version on each deployment - Efficiently manages static assets and dynamic content