Skip to content

Commit 65c3ba4

Browse files
committed
Enabled backup in persistent cache (local storage).
#cache
1 parent 778741a commit 65c3ba4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/app.run.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939

4040
var options = {
4141
maxAge: 60 * 60 * 1000, // Items added to this cache expire after 1 hour
42-
deleteOnExpire: 'passive' // Cache will do nothing when an item expires.
42+
deleteOnExpire: 'passive', // Cache will do nothing when an item expires.
4343
// Expired items will remain in the cache until requested, at which point they are removed, and undefined is returned.
44+
storageMode: 'localStorage' // This cache will use `localStorage`.
4445
};
4546

4647
$log.debug('Created a default cache for HTTP requests with properties:', options);

0 commit comments

Comments
 (0)