diff --git a/app/templates/base.html b/app/templates/base.html
index 1e3c911..0cd955d 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -89,6 +89,13 @@
.catch((error) => {
console.error('Service Worker registration failed:', error);
});
+
+ // Pre-cache key pages for offline support once SW is active
+ navigator.serviceWorker.ready.then(() => {
+ ['/capture', '/queue'].forEach(url => {
+ fetch(url).catch(() => {});
+ });
+ });
});
} else {
console.warn('Service Workers not supported in this browser');