PageSourceSearch

https://www.cmaan.pa.gov.br/site/sw.js

js cmaan.pa.gov.br collected 2026-10-01 04:49:59 UTC 997 bytes, 33 lines download raw bytes

1self.addEventListener('install', function(event) {
2    var CACHE_NAME = 'my-site-cache-v1';
3    var urlsToCache = [
4        '/',
5        'https://www.cmaan.pa.gov.br/site/themes/webone/assets/style.css'
6    ];
7});
8
9self.addEventListener('fetch', function(event) {
10    event.waitUntil(
11        caches.open(CACHE_NAME)
12            .then(function(cache) {
13                console.log('Opened cache');
14                return cache.addAll(urlsToCache);
15            })
16    );
17});
18
19self.addEventListener('activate', function(event) {
20    var cacheWhitelist = ['https://www.cmaan.pa.gov.br/site/', 'https://www.cmaan.pa.gov.br/site/Vereadores'];
21
22    event.waitUntil(
23        caches.keys().then(function(cacheNames) {
24            return Promise.all(
25                cacheNames.map(function(cacheName) {
26                    if (cacheWhitelist.indexOf(cacheName) === -1) {
27                        return caches.delete(cacheName);
28                    }
29                })
30            );
31        })
32    );
33});

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.