feat: implement comprehensive PWA force update system
- 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:
11
public/meta.json.example
Normal file
11
public/meta.json.example
Normal 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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user