kuitos / axios-extensions

🍱 axios extensions lib, including throttle, cache, retry features etc...
MIT License
831 stars 49 forks source link

Clearing cache / Not caching same url with other header data #68

Open krychu90 opened 4 years ago

krychu90 commented 4 years ago

How can I clear all cache? I am requesting the same url but with other header data and cache will not allow to send it. I am using throttleAdapterEnhancer and cacheAdapterEnhancer adapters.

kuitos commented 4 years ago

Sorry I didn't quite catch your meaning, could u pls provide a minimal reproduction?

If you wanna clear all the cache, u could define a custom cache by yourself and clear it manually. see https://github.com/kuitos/axios-extensions#more-advanced

krychu90 commented 4 years ago

When I make GET request with different header to the same url the second request will be cached. I think this should not be cached like same url with different params data.

shrpne commented 1 year ago

@kuitos it is especially important for Authorization header, which can be checked by default