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 authored and GitHub committed 2026-07-02 21:49:17 +10:00
1 parent 06013b3ac5
commit 4195841827
2 files changed
+64 -40

No files matched your search

+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;
});