TF-3256 Update index.html cache config

This commit is contained in:
DatDang
2024-11-07 16:16:42 +07:00
committed by Dat H. Pham
parent 51a9e9a926
commit fe5cdc770c
6 changed files with 41 additions and 61 deletions
@@ -0,0 +1,24 @@
# 54. 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