You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our API calls we pass a languageid & siteid as header data, which will give us different results. For this it would be handy for us to allow passing a custom cachekey generator with the options.
Do you agree with this idea? If yes, then we can also create a Pull Request with this change if you don't have time to add it?
In throttleAdapterEnhancer & cacheAdapterEnhancer:
var customCacheKey = options.cacheKeyGenerator && options.cacheKeyGenerator(config, buildSortedURL(url, params, paramsSerializer));
var index_1 = customCacheKey || buildSortedURL(url, params, paramsSerializer);
and then in the calling method we can pass the cacheKeyGenerator to the options.
In our API calls we pass a languageid & siteid as header data, which will give us different results. For this it would be handy for us to allow passing a custom cachekey generator with the options.
Do you agree with this idea? If yes, then we can also create a Pull Request with this change if you don't have time to add it?
In throttleAdapterEnhancer & cacheAdapterEnhancer:
and then in the calling method we can pass the
cacheKeyGenerator
to the options.The text was updated successfully, but these errors were encountered: