diff --git a/.env b/.env index 96ea09315..eedeb9b63 100644 --- a/.env +++ b/.env @@ -22,7 +22,7 @@ REACT_APP_UI_LOGGER_FILE=curiosity_debug_log_{0}.json REACT_APP_UI_WINDOW_ID=curiosity REACT_APP_AJAX_TIMEOUT=60000 -REACT_APP_AJAX_CACHE=30000 +REACT_APP_AJAX_CACHE=15000 REACT_APP_SELECTOR_CACHE=120000 REACT_APP_CONFIG_SERVICE_LOCALES_COOKIE=rh_locale diff --git a/src/services/common/serviceConfig.js b/src/services/common/serviceConfig.js index ba76dc7cd..6afacb52e 100644 --- a/src/services/common/serviceConfig.js +++ b/src/services/common/serviceConfig.js @@ -73,7 +73,7 @@ const axiosServiceCall = async ( `${window.btoa( JSON.stringify(updatedConfig, (key, value) => { if (value !== updatedConfig && _isPlainObject(value)) { - return (Object.entries(value).sort(([a], [b]) => a.localeCompare(b)) || []).toString(); + return JSON.stringify(Object.entries(value).sort(([a], [b]) => a.localeCompare(b)) || []); } if (typeof value === 'function') { return value.toString();