mirror of
https://github.com/inventree/inventree-app.git
synced 2026-07-04 11:50:45 +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:
@@ -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