Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* eslint-disable no-restricted-globals */
|
||||
/**
|
||||
* Minimal service worker for Toolctrl Boilerplate.
|
||||
* Minimal service worker for HiveGrid.
|
||||
*
|
||||
* Strategy:
|
||||
* - Static, hashed asset requests under /assets/ → cache-first (long-term
|
||||
@@ -19,8 +19,8 @@
|
||||
*/
|
||||
|
||||
const CACHE_VERSION = "v1-2026-05-17";
|
||||
const ASSET_CACHE = `toolctrl-assets-${CACHE_VERSION}`;
|
||||
const RUNTIME_CACHE = `toolctrl-runtime-${CACHE_VERSION}`;
|
||||
const ASSET_CACHE = `hivegrid-assets-${CACHE_VERSION}`;
|
||||
const RUNTIME_CACHE = `hivegrid-runtime-${CACHE_VERSION}`;
|
||||
|
||||
self.addEventListener("install", (event) => {
|
||||
// Activate immediately so cached responses from old versions are evicted.
|
||||
@@ -33,7 +33,7 @@ self.addEventListener("activate", (event) => {
|
||||
const keys = await caches.keys();
|
||||
await Promise.all(
|
||||
keys
|
||||
.filter((key) => key.startsWith("toolctrl-") && key !== ASSET_CACHE && key !== RUNTIME_CACHE)
|
||||
.filter((key) => key.startsWith("hivegrid-") && key !== ASSET_CACHE && key !== RUNTIME_CACHE)
|
||||
.map((key) => caches.delete(key))
|
||||
);
|
||||
await self.clients.claim();
|
||||
|
||||
Reference in new issue
Block a user