Reuse http client and cache the https setting (#845)

This makes the app way faster by not having to redo the TCP and TLS handshake all the time and removing a disk read on each http request.
This commit is contained in:
Jorropo
2026-07-02 21:49:17 +10:00
committed by GitHub
parent 06013b3ac5
commit 4195841827
2 changed files with 64 additions and 40 deletions
+1
View File
@@ -274,6 +274,7 @@ class _InvenTreeAppSettingsState extends State<InvenTreeAppSettingsWidget> {
value: strictHttps,
onChanged: (bool value) {
InvenTreeSettingsManager().setValue(INV_STRICT_HTTPS, value);
InvenTreeAPI().onStrictHttpsChanged(value);
setState(() {
strictHttps = value;
});