mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-03 14:05:28 +00:00
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:
1 parent
06013b3ac5
commit
4195841827
2 files changed
+64
-40
No files matched your search
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user