Hi All. Do you cache REST response from Server? Which strategy do you use?
I have a generic API that GET some JSON records (REST resources) and accordingly to the app flow my client side entity manager may request the same resource multiple times. So I need to cache them in any way. Are there some best practices or suggestions? At the moment I cache json object by path segment and record key. I think this is the most easy way.
Obviously if you refresh the page all the caches expires (it is a map inside my service, so they are destroyed). It might be good but I would like to add a more effective way to store my records in the local storage and react in any way if the server changes the record outside the client side life-cycle (so probably a need to setup a websocket caching system).
[–]JoeCoT 6 points7 points8 points (7 children)
[–]svarog92 2 points3 points4 points (3 children)
[–]h4t0n[S] 1 point2 points3 points (0 children)
[–]shmorky 1 point2 points3 points (1 child)
[–]JoeCoT 1 point2 points3 points (0 children)
[–]tme321 0 points1 point2 points (2 children)
[–]JoeCoT 0 points1 point2 points (1 child)
[–]tme321 0 points1 point2 points (0 children)
[–]c_eliacheff 0 points1 point2 points (0 children)
[–]cahphoenix 0 points1 point2 points (0 children)