PageSourceSearch

https://quantumcomputingreport.com/fresh-pages-worker

js quantumcomputingreport.com collected 2026-10-02 03:20:32 UTC 616 bytes, 11 lines download raw bytes

1// A plain navigation asks the server before trusting the browser's copy: the hosting marks
2// anonymous pages as fresh for a month, and this is the one place that can be overruled.
3self.addEventListener('install', () => self.skipWaiting());
4self.addEventListener('activate', (event) => event.waitUntil(self.clients.claim()));
5self.addEventListener('fetch', (event) => {
6    const { request } = event;
7    if (request.mode !== 'navigate' || request.method !== 'GET' || request.cache !== 'default') {
8        return;
9    }
10    event.respondWith(fetch(request, { cache: 'no-cache' }).catch(() => fetch(request)));
11});

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.