I am using $resource and caching the results of get requests. My problem is that, after post requests, the cache is not being invalidated.
Here is the return value
$resource is using the default cache for $http.
$resource
$http
You can access it using: $cacheFactory.get('$http')
$cacheFactory.get('$http')
You can remove a key value pair, using the returned caches remove({string} key) method.
remove({string} key)
E.g.:
var key = '...the key you want to remove, e.g. `/nouns/5`...'; $cacheFactory.get('$http').remove(key);