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
@@ -36,7 +36,7 @@ isolateManager.execute(
- Communicate between two isolates
To see a visual representation of this process, take a look at the image below:
[communicate_between_two_isolate](../images/handle_task_with_isolate.png);
<img src="../images/handle_task_with_isolate.png" alt="communicate_between_two_isolate">
## Consequences
@@ -45,4 +45,4 @@ To see a visual representation of this process, take a look at the image below:
## Reference
- [worker_manager](https://pub.dev/packages/worker_manager)
- <img src="../images/handle_task_with_isolate.png" alt="worker_manager">
@@ -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
Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB