DEV Community

Discussion on: How to cache HTTP requests in Angular

Collapse
 
bespunky profile image
Shy Agam

Great tip.
How would you clear the cache though if you wanted to make a new request?

Collapse
 
bartosz_io profile image
Bartosz Pietrucha • Edited

Hi! You can create another stream without shareReplay and fetch the data or set a timeout (windowTime) on shareReplay (rxjs-dev.firebaseapp.com/api/opera...).