1// Portal do Colorado â Service Worker SLIM v2 (2026-04-23 killswitch bump) 2// Mantem APENAS push notifications (Firebase + LaraPush). Removida a camada SWR HTML 3// que estava servindo HTML stale aos usuarios. Caches antigos purgados ao activate. 4// Bump deliberado de versao pra forcar byte-diff -> browsers com SW antigo instalam este. 5 6const options = { 7 firebaseConfig: { 8 projectId: "portal-do-colorado", 9 messagingSenderId: "161854433486", 10 appId: "1:161854433486:web:5485386a695e80a43d889f", 11 apiKey: "AIzaSyC2V1IsBKJJOiqwrdL9rNB6dqQEblu_cDc", 12 }, 13 domain: "portaldocolorado.com.br", 14 api_url: "https://push.capraranetwork.com.br/api/token", 15 vapid_public_key: "BMVi7HyYDKmgpRGtlnj3S3gatQxbF5DFOEk71noi9WmfcVHJiv-75Khr0BOTVHBW2cAp4tV6H8voqiE4f11T8Ro", 16 http: 0, 17 one_time_collect: 1, 18}; 19 20importScripts("https://cdn.larapush.com/sw/larapush-sw-v5.min.js"); 21 22// Purga TODOS os caches pc-* no activate (limpa residual de versoes anteriores do SWR) 23self.addEventListener('install', e => self.skipWaiting()); 24self.addEventListener('activate', e => { 25 e.waitUntil(Promise.all([ 26 self.clients.claim(), 27 caches.keys().then(keys => Promise.all( 28 keys.filter(k => k.indexOf('pc-') === 0).map(k => caches.delete(k)) 29 )) 30 ])); 31}); 32// NAO intercepta fetch events â navegadores vao direto na rede. Push notifications 33// via LaraPush/Firebase continuam funcionando (handled pelos importScripts acima).
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.