self.addEventListener('install', event => {
    self.skipWaiting();
});

self.addEventListener('activate', event => {
    event.waitUntil(clients.claim());
});

self.addEventListener('fetch', event => {
    // Solo cachear GET, nunca interceptar POST
    if (event.request.method !== 'GET') return;
    
    // No interceptar rutas de la app, solo dejar pasar
    event.respondWith(fetch(event.request));
});