feat: add multi-server control panel and host-aware sync
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
const CACHE_NAME = "llm-monitor-v1";
|
||||
const CACHE_NAME = "llm-monitor-v2";
|
||||
const APP_SHELL = [
|
||||
"/",
|
||||
"/servers",
|
||||
"/models-running",
|
||||
"/models-available",
|
||||
"/static/css/output.css",
|
||||
"/static/js/server-config.js",
|
||||
"/static/js/app.js",
|
||||
"/static/js/servers.js",
|
||||
"/static/js/models-running.js",
|
||||
"/static/js/data-sync.worker.js",
|
||||
"/static/js/pwa-register.js",
|
||||
@@ -66,7 +69,7 @@ self.addEventListener("fetch", (event) => {
|
||||
caches.open(CACHE_NAME).then((cache) => cache.put(event.request, responseClone));
|
||||
return response;
|
||||
})
|
||||
.catch(() => caches.match("/models-running"));
|
||||
.catch(() => caches.match("/servers"));
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user