summaryrefslogtreecommitdiffstats
path: root/dist/cache_name.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* so users don't have to stay on a single page for 300 seconds for an updatesijanec2020-06-091-1/+1
|
* code editor auto indentation fucked up bvr comments #2sijanec2020-06-091-1/+1
|
* forgot install smhsijanec2020-06-081-1/+1
|
* killing the cache ... good to gosijanec2020-06-081-1/+1
|
* added some protection, proby can merge nowsijanec2020-06-081-1/+1
|
* uhhh, didn't even test ):sijanec2020-06-081-1/+1
|
* DNM+in case you haven't read the prev. commitsijanec2020-06-081-1/+1
|
* added update mechanism, DO NOT MERGE b4 seeing commit notes!sijanec2020-06-081-0/+5
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.