feat: implement comprehensive PWA force update system
Some checks failed
CodeQL Analysis / Analyze CodeQL (push) Has been cancelled
Deploy Application / deploy (push) Has been cancelled
Mirror to Codeberg / mirror (push) Has been cancelled
Mirror to PrivacyGuides / mirror (push) Has been cancelled

- Add UpdateManager and UpdateChecker for automatic version detection
- Add post-build script for meta.json generation and version injection
- Enhance Service Worker with version-aware caching
- Add .htaccess configuration for proper cache control

This ensures all users receive the latest version after deployment
without manual cache clearing.
This commit is contained in:
lockbitchat
2025-12-29 10:51:07 -04:00
parent 1b6431a36b
commit 91c292a6cf
20 changed files with 1606 additions and 74 deletions

View File

@@ -147,13 +147,16 @@
<link rel="stylesheet" href="src/styles/animations.css">
<link rel="stylesheet" href="src/styles/components.css">
<script src="src/scripts/fa-check.js"></script>
<script type="module" src="dist/qr-local.js?v=1757383302"></script>
<script type="module" src="src/components/QRScanner.js?v=3"></script>
<!-- Update Manager - система принудительного обновления -->
<script src="src/utils/updateManager.js"></script>
<script type="module" src="src/components/UpdateChecker.jsx"></script>
<script type="module" src="dist/qr-local.js?v=1767018751497"></script>
<script type="module" src="src/components/QRScanner.js?v=1767018751497"></script>
</head>
<body>
<div id="root"></div>
<script type="module" src="dist/app-boot.js?v=1757383304"></script>
<script type="module" src="dist/app.js?v=1757383304"></script>
<script type="module" src="dist/app-boot.js?v=1767018751497"></script>
<script type="module" src="dist/app.js?v=1767018751497"></script>
<script src="src/scripts/pwa-register.js"></script>
<script src="./src/pwa/install-prompt.js" type="module"></script>