PageSourceSearch

https://app.getalink.com/clear-cache.js?v=1791043428660

js getalink.com collected 2026-10-03 21:32:13 UTC 699 bytes, 28 lines download raw bytes

1// Clear all caches and service workers on load
2(function() {
3  'use strict';
4
5  // Clear all cache storage
6  if ('caches' in window) {
7    caches.keys().then(function(names) {
8      for (let name of names) {
9        caches.delete(name);
10      }
11    });
12  }
13
14  // Unregister all service workers
15  if ('serviceWorker' in navigator) {
16    navigator.serviceWorker.getRegistrations().then(function(registrations) {
17      for(let registration of registrations) {
18        registration.unregister();
19      }
20    });
21  }
22
23  // Force reload from server on first load
24  if (!sessionStorage.getItem('app_loaded')) {
25    sessionStorage.setItem('app_loaded', 'true');
26    window.location.reload(true);
27  }
28})();

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.