refactor: implement minimal PWA caching strategy

- Cache only essential PWA assets (manifest, icons, core scripts)
- Use Network First for all other requests
- Remove aggressive caching of UI components and styles
- Preserve PWA installation while minimizing cache footprint
This commit is contained in:
lockbitchat
2025-10-13 01:35:32 -04:00
parent d24d578321
commit 7af8f528ff
11 changed files with 406 additions and 542 deletions

View File

@@ -1421,7 +1421,6 @@
// PAKE password states removed - using SAS verification instead
// Session state - all security features enabled by default
const [sessionTimeLeft, setSessionTimeLeft] = React.useState(0);
const [pendingSession, setPendingSession] = React.useState(null);
// All security features are enabled by default - no payment required
@@ -1730,8 +1729,6 @@
setVerificationCode('');
setSecurityLevel(null);
// Reset session and timer
setSessionTimeLeft(0);
// Return to main page after a short delay
setTimeout(() => {
@@ -3471,7 +3468,6 @@
isConnected: isConnectedAndVerified,
securityLevel: securityLevel,
// sessionManager removed - all features enabled by default
sessionTimeLeft: sessionTimeLeft,
webrtcManager: webrtcManagerRef.current
}),