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

11
public/meta.json.example Normal file
View File

@@ -0,0 +1,11 @@
{
"version": "1735689600000",
"buildVersion": "1735689600000",
"appVersion": "1.0.0",
"buildTime": "2025-01-01T00:00:00.000Z",
"buildId": "1735689600000",
"gitHash": null,
"generated": true,
"generatedAt": "2025-01-01T00:00:00.000Z"
}