From 571c27a64e8452a58a05d85bf40e1d7885d2dd1b Mon Sep 17 00:00:00 2001 From: sijanec Date: Mon, 8 Jun 2020 22:43:11 +0200 Subject: added update mechanism, DO NOT MERGE b4 seeing commit notes! this "update mechanism" only deletes old caches. old means caches that are caches with names other than the name in cache_name.txt. It is important not to cache cache_name.txt and always serve it with HTTP headers that allow no HTTP level caching. Update checking occurs every 300 seconds and if a new cache is released and sw.js is not reinstalled, this timer will clear the cache. the old update method did not work since it relied on sw being reloaded often, which is not the case on iPhone devices, where Safari runs almost the whole uptime of the phone and it's not common for people to shut down their precious little iPhones. it worked on android as android is known for killing apps and chrome is no exception. --- dist/cache_name.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dist/cache_name.txt (limited to 'dist/cache_name.txt') diff --git a/dist/cache_name.txt b/dist/cache_name.txt new file mode 100644 index 0000000..30e3bd1 --- /dev/null +++ b/dist/cache_name.txt @@ -0,0 +1,5 @@ + + + + +///site-static-1.0.14.3-beta-134d890||| -- cgit v1.2.3