This is an opinionated list of desired Angular capabilities and feature lacks, to open debate and looking for best ways to solve them
- We cannot be confident about the URL used as cache key: Removing, getting or updating $http cache entries in userland is hard and hacky.
httpu.headers
helps on solving this issue. $cacheFactory.Cache
is private: This causes reimplementing all the logic for a $cacheFactory API, instead of letting users to specify with kind of cache a $cacheFactory is returning.- We cannot control how a
$cacheFactory.Cache
key is generated: You have to decorate all your $cacheFactory implementations ($cacheFactory.Cache is private). Exposing a key generator method somewhere may help - We cannot know if a request comes from the server or the cache Core implementation