Closed Kroitoru closed 9 years ago
When you refresh the page, everything in memory is wiped. Use storageMode: "localStorage"
to have stuff remain between page refreshes:
$http.defaults.cache = CacheFactory('defaultCache', {
maxAge: 15 * 60 * 1000, // Items added to this cache expire after 15 minutes
cacheFlushInterval: 60 * 60 * 1000, // This cache will clear itself every hour
deleteOnExpire: 'aggressive' // Items will be deleted from this cache when they expire,
storageMode: 'localStorage'
});
Closing because I’m not sure this is an issue, if you are convinced that this is really a bug, please feel free to re-open the issue and add more information:
Otherwise support is done via the mailing list.
Thanks! that's work :+1:
Hey, I get the data by the http method properly. At the time I refresh the page the data is lost. Do you have any idea why after refreshing the page dataCache.get("surveyList") is undefined?