DEV Community

Discussion on: How to cache HTTP requests in Angular

Collapse
 
mauro_codes profile image
Mauro Garcia

Hi Bartosz! Thanks for sharing this tip. I would like to ask you if you found any way to invalidate this cache? Thanks!

Collapse
 
bartosz_io profile image
Bartosz Pietrucha

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...).

Collapse
 
mauro_codes profile image
Mauro Garcia

Thanks again! I'll give a try :)