I really like the Observable caching strategy you mentioned.
Dave Bosley
22

Also, if you provide the ‘publishReplay’ operator a second argument, which is time in ms, it will invalidate the cache after that time. For example, ‘.publishReplay(1, 30000)’ will make the cache stay valid for 30 seconds.

Show your support

Clapping shows how much you appreciated Armen Vardanyan’s story.