diff options
author | Andrew Dolgov <[email protected]> | 2018-02-03 17:08:38 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-02-03 17:08:38 +0300 |
commit | 66ba91e6b1892c02f0ff0777a2ee3a427cba4319 (patch) | |
tree | e4f5404d800eb85b097546375574b5047cacfc91 /js | |
parent | 670089b93d652afa4673c659c8fef724cc65b9a9 (diff) |
further extend cache refresh interval
Diffstat (limited to 'js')
-rw-r--r-- | js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/index.js b/js/index.js index 1b62d7b..785dc32 100644 --- a/js/index.js +++ b/js/index.js @@ -3,7 +3,7 @@ function cache_refresh(force) { localforage.getItem("epube.cache-timestamp").then(function(stamp) { var ts = parseInt(new Date().getTime()/1000); - if (force || !stamp || ts - stamp > 3600 * 24) { + if (force || !stamp || ts - stamp > 3600 * 24 * 7) { console.log('asking worker to refresh cache'); navigator.serviceWorker.controller.postMessage("refresh-cache"); localforage.setItem("epube.cache-timestamp", ts); |