angularjs - What is the lifetime of the cache when using the property in an $http get? -
angularjs - What is the lifetime of the cache when using the property in an $http get? -
if set $http.get have cache this:
$http.get(url, { cache: true}).success(...);
then info stored. there object can check see data. lifetime of data? info lost when reload page in application?
its keeping while live html page, if page has been closed or refreshed removed, if want clear cache should utilize $cachefactory provider's removeall() function, if want cache maintain long time should utilize localstorage or sessionstorage
angularjs caching
Comments
Post a Comment