diff --git a/packages/bruno-app/src/components/Preferences/Cache/index.js b/packages/bruno-app/src/components/Preferences/Cache/index.js
index 430a15f72..28ef91483 100644
--- a/packages/bruno-app/src/components/Preferences/Cache/index.js
+++ b/packages/bruno-app/src/components/Preferences/Cache/index.js
@@ -12,7 +12,7 @@ import debounce from 'lodash/debounce';
import get from 'lodash/get';
const cacheSchema = Yup.object().shape({
- httpHttpsAgents: Yup.object({
+ sslSession: Yup.object({
enabled: Yup.boolean()
})
});
@@ -38,8 +38,8 @@ const Cache = () => {
const formik = useFormik({
initialValues: {
- httpHttpsAgents: {
- enabled: get(preferences, 'cache.httpHttpsAgents.enabled', false)
+ sslSession: {
+ enabled: get(preferences, 'cache.sslSession.enabled', false)
}
},
validationSchema: cacheSchema,
@@ -82,8 +82,8 @@ const Cache = () => {
const handleResetCache = () => {
dispatch(clearHttpHttpsAgentCache())
- .then(() => toast.success('Agent cache cleared'))
- .catch(() => toast.error('Failed to clear agent cache'));
+ .then(() => toast.success('ssl session cache cleared'))
+ .catch(() => toast.error('Failed to clear ssl session cache'));
};
return (
@@ -93,14 +93,14 @@ const Cache = () => {
-
@@ -110,7 +110,7 @@ const Cache = () => {
-
diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/app.js b/packages/bruno-app/src/providers/ReduxStore/slices/app.js
index a674c7968..b394faf11 100644
--- a/packages/bruno-app/src/providers/ReduxStore/slices/app.js
+++ b/packages/bruno-app/src/providers/ReduxStore/slices/app.js
@@ -45,8 +45,8 @@ const initialState = {
interval: 1000
},
cache: {
- httpHttpsAgents: {
- enabled: true
+ sslSession: {
+ enabled: false
}
}
},
diff --git a/packages/bruno-electron/src/ipc/network/cert-utils.js b/packages/bruno-electron/src/ipc/network/cert-utils.js
index d8f7c4368..3fd45742c 100644
--- a/packages/bruno-electron/src/ipc/network/cert-utils.js
+++ b/packages/bruno-electron/src/ipc/network/cert-utils.js
@@ -195,7 +195,7 @@ const buildCertsAndProxyConfig = async ({
shouldUseCustomCaCertificate: preferencesUtil.shouldUseCustomCaCertificate(),
customCaCertificateFilePath: preferencesUtil.getCustomCaCertificateFilePath(),
shouldKeepDefaultCaCertificates: preferencesUtil.shouldKeepDefaultCaCertificates(),
- cacheSslSession: preferencesUtil.isHttpHttpsAgentCachingEnabled()
+ cacheSslSession: preferencesUtil.isSslSessionCachingEnabled()
};
// Get client certificates from bruno config and interpolate
diff --git a/packages/bruno-electron/src/store/preferences.js b/packages/bruno-electron/src/store/preferences.js
index f082ac4bd..48ed9db2a 100644
--- a/packages/bruno-electron/src/store/preferences.js
+++ b/packages/bruno-electron/src/store/preferences.js
@@ -108,7 +108,7 @@ const defaultPreferences = {
zoomPercentage: 100
},
cache: {
- httpHttpsAgents: {
+ sslSession: {
enabled: false
}
}
@@ -171,7 +171,7 @@ const preferencesSchema = Yup.object().shape({
zoomPercentage: Yup.number().min(50).max(150)
}),
cache: Yup.object({
- httpHttpsAgents: Yup.object({
+ sslSession: Yup.object({
enabled: Yup.boolean()
})
}).optional()
@@ -361,8 +361,8 @@ const preferencesUtil = {
getZoomPercentage: () => {
return get(getPreferences(), 'display.zoomPercentage', 100);
},
- isHttpHttpsAgentCachingEnabled: () => {
- return get(getPreferences(), 'cache.httpHttpsAgents.enabled', false);
+ isSslSessionCachingEnabled: () => {
+ return get(getPreferences(), 'cache.sslSession.enabled', false);
},
hasLaunchedBefore: () => {
return get(getPreferences(), 'onboarding.hasLaunchedBefore', false);
diff --git a/packages/bruno-electron/src/utils/proxy-util.js b/packages/bruno-electron/src/utils/proxy-util.js
index 1d59c3c60..bf922f80a 100644
--- a/packages/bruno-electron/src/utils/proxy-util.js
+++ b/packages/bruno-electron/src/utils/proxy-util.js
@@ -111,7 +111,7 @@ function setupProxyAgents({
interpolationOptions,
timeline
}) {
- const disableCache = !preferencesUtil.isHttpHttpsAgentCachingEnabled();
+ const disableCache = !preferencesUtil.isSslSessionCachingEnabled();
// Ensure TLS options are properly set
const tlsOptions = {