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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:
Current behavior
I'm using useHttpCacheLocalStorage to cache with LocalStorage and the request results are being cached with key '@cache-example'.
The culprit seems to theese 2 lines, where i think createKey() there shoud not be there:
When I try to clear all cached entries with HttpCacheManager clear(), it iterates all the keys and ads a new '@cache' prefix making the previous key @cahe-@cache-example:
Expected behavior
Localstorage entries related to cached data should have been deleted.
Minimal reproduction of the problem with instructions
It is possible to reproduce using the playground app with useHttpCacheLocalStorage.
Environment
Angular version: 14.0.1
Cashew version: 3.0.0
Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
I'm using
![image](https://user-images.githubusercontent.com/12531526/187751509-dc22013b-811d-4a86-af5a-3718e09978af.png)
useHttpCacheLocalStorage
to cache withLocalStorage
and the request results are being cached with key '@cache-example'.The culprit seems to theese 2 lines, where i think
createKey()
there shoud not be there:When I try to clear all cached entries with
HttpCacheManager
clear(), it iterates all the keys and ads a new '@cache' prefix making the previous key@cahe-@cache-example
:Expected behavior
Localstorage entries related to cached data should have been deleted.
Minimal reproduction of the problem with instructions
It is possible to reproduce using the playground app with
useHttpCacheLocalStorage
.Environment
The text was updated successfully, but these errors were encountered: