Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
krychu90 opened this issue Feb 19, 2020 · 3 comments
Open

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

krychu90 opened this issue Feb 19, 2020 · 3 comments

Comments

@krychu90
Copy link

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
Copy link
Owner

kuitos commented Feb 20, 2020

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
Copy link
Author

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
Copy link

shrpne commented Nov 23, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants