90f4e0b746
Signed-off-by: dab246 <tdvu@linagora.com>
25 lines
758 B
Markdown
25 lines
758 B
Markdown
# 56. Update Flutter Service Worker Initialization
|
|
|
|
Date: 2024-11-15
|
|
|
|
## Status
|
|
|
|
Accepted
|
|
|
|
## Context
|
|
|
|
- Since the new version of Flutter, old initialization of Flutter Service Worker does not work.
|
|
- Version is always null
|
|
- Twake Mail web resources is requested everytime the web is loaded, no cache is used <img src="../images/before-flutter-3.22.png">
|
|
- One hard-reload, one normal reload
|
|
|
|
## Decision
|
|
|
|
- We update the initialization of Flutter Service Worker according to the new version of Flutter
|
|
- More reference: https://docs.flutter.dev/platform-integration/web/initialization
|
|
|
|
## Consequences
|
|
|
|
- Twake Mail web use cache resources to improve performance <img src="../images/after-flutter-3.22.png">
|
|
- One hard-reload, many normal reload
|