-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TF-3256 Update index.html cache config
- Loading branch information
1 parent
51a4a1b
commit 0ee45a8
Showing
6 changed files
with
41 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
docs/adr/0054-update-flutter-service-worker-initialization.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters