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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -