diff options
-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 c5e2748..1b62d7b 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) { + if (force || !stamp || ts - stamp > 3600 * 24) { console.log('asking worker to refresh cache'); navigator.serviceWorker.controller.postMessage("refresh-cache"); localforage.setItem("epube.cache-timestamp", ts); |