Hi Json,
Is it possible to have a strategy like, all the partial requests are cached into local store and rest of the data request goes to session storage.
app.run(function ($http, DSCacheFactory) {
DSCacheFactory('defaultCache', {
storageMode: 'sessionStorage'
});
DSCacheFactory('partialCache', {
storageMode: 'localStorage'
});
$http.defaults.cache = ?? // DSCacheFactory.get('defaultCache');
});
if it is not directly supported, can one write a wrapper on cache put to select the appropriate cache based on key (say check for .html)
Thanks,
bsr.