How to make update data $http requests, which are cached?

The bottom line is this:
let's have a getData()that returns {name:", age:"}.
Use cache:true in request. Recent data take only when you reload the page.
And I want to update only one field without extra request.
How to retrieve the cached request and update a single variable?
Preferably without using $cacheFactory.
June 26th 19 at 14:10
1 answer
June 26th 19 at 14:12
It is not very clear. You store data in the cache and the data cache to change?
Maybe we should store the data in some intermediate service instead of calling the $http each time then?
Yes, exactly, I'd like to replace the cache. An intermediate option I have proboval, not suitable, due to some features of the architecture :) - Demarcus.Lehner commented on June 26th 19 at 14:15
: might want to reconsider your view of architecture, which does not make quite a simple replacement of one service giving some data to another service, gives the same data. - willow.Hand commented on June 26th 19 at 14:18

Find more questions by tags Angular