Skip to content

Commit 647c84a

Browse files
xssfoxTheSkorm
authored andcommitted
fix up some cache references
1 parent 5ae5542 commit 647c84a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

js/app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,12 @@ function check_version(){
10301030
.then(function(response){ return response.json()})
10311031
.then(function(response){
10321032
if (response['version'] != document.body.dataset.version) {
1033+
1034+
caches.keys().then(function(names) { // wipe cache for fresh reload
1035+
for (let name of names)
1036+
caches.delete(name);
1037+
});
1038+
10331039
window.clearInterval(update_check)
10341040
reload_timer = window.setTimeout(update_site, response['refresh']*1000)
10351041
reload_end_time = new Date().getTime() +response['refresh']*1000

service-worker.template.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ self.addEventListener('install', function(event) {
4141
'/img/markers/shadow.png',
4242
'/img/markers/balloon-pop.png',
4343
'/img/hab-spinner.gif',
44-
'/img/sondehub_logo.png',
44+
'/img/sondehub_au.png',
4545
'/favicon.ico',
4646
'/font/HabitatFont.woff',
4747
'/font/Roboto-regular.woff',
48-
'/index.html'
48+
'/index.html',
49+
'/'
4950
]
5051
);
5152
})

0 commit comments

Comments
 (0)