This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$http : ability to clear a request from the cache #5968
Open
Description
At the moment there isn't a direct way in $http
to clear the cache.
I know it's possible to use $cacheFactory
to return the default or custom cache.
However to be able to use this with 100% confidence i'd also need the buildUr
l function from $http
exposed to generate the key.
so it'd be nice if we had either:
$http.buildUrl(url,params)
made public
or something like:
$http.removeCache(url, params (optional), cache (optional))
If either of those sounds like they'd be a good idea I'm happy to put together a PR for it...