diff options
Diffstat (limited to 'js/index.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); |