Vendor globe.gl and its Earth textures
globe.gl 2.46.2 (MIT, three.js r185 bundled) and the NASA Blue Marble and Black Marble textures from three-globe 2.45.3, copied once from the npm registry; SOURCES.md records versions, licences and sha256, and the bundled libraries' notices are in LICENSES-bundled.txt. The service worker leaves the folder out of the offline precache: the feed loads it the first time it shows the globe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
1 parent
b9040bbd80
commit
f41ebf2160
26 files changed
+122
-1101
No files matched your search
@@ -9,7 +9,8 @@ self.addEventListener('fetch', event => event.respondWith(onFetch(event)));
|
||||
const cacheNamePrefix = 'offline-cache-';
|
||||
const cacheName = `${cacheNamePrefix}0.0.1`;
|
||||
const offlineAssetsInclude = [ /\.dll$/, /\.pdb$/, /\.wasm/, /\.html/, /\.js$/, /\.json$/, /\.css$/, /\.woff$/, /\.png$/, /\.jpe?g$/, /\.gif$/, /\.ico$/, /\.blat$/, /\.dat$/ ];
|
||||
const offlineAssetsExclude = [ /^service-worker\.js$/ ];
|
||||
// The globe (4 MB of script and textures) is fetched when the feed first shows it, never precached.
|
||||
const offlineAssetsExclude = [ /^service-worker\.js$/, /^vendor\/globe\// ];
|
||||
|
||||
async function onInstall(event) {
|
||||
console.info('Service worker: Install');
|
||||
|
||||
Reference in new issue
Block a user