diff --git a/notes/notes b/notes/notes index 72570ec..ff68b40 100644 --- a/notes/notes +++ b/notes/notes @@ -51,7 +51,7 @@ https://developers.google.com/web/tools/workbox/guides/precache-files/cli RENAME ?plvx.x parameter in index.html to the new version so all files update on mobile 2) PUBLISH -publish command line from rockfishCore folder: +publish command line from pecklist folder: //this will build a release version which is what we use on the server now dotnet publish -c Release -o ./../publish/ diff --git a/notes/todo b/notes/todo index a172f92..3088376 100644 --- a/notes/todo +++ b/notes/todo @@ -1,3 +1,5 @@ Add serviceworker so can use offline Localize all the files required to our server, not CDN +Not working on android desktop pwa offline, maybe something like this will help: +https://stackoverflow.com/questions/45733419/progressive-web-app-offline-cache-does-not-work-on-android-it-works-on-chrome \ No newline at end of file diff --git a/workbox-config.js b/workbox-config.js index abba596..6dcb024 100644 --- a/workbox-config.js +++ b/workbox-config.js @@ -1,8 +1,8 @@ module.exports = { "globDirectory": "wwwroot/", "globPatterns": [ - "**/*.{xml,css,eot,svg,ttf,woff,woff2,png,ico,html,js,handlebars,json}" + "**/*.{xml,css,eot,ttf,woff,woff2,png,ico,html,js,json}" ], - "swDest": "wwwroot\\OUTsw.js", - "swSrc": "wwwroot/sw.js" + "swDest": "wwwroot\\sw.js", + "swSrc": "wwwroot/INPUTsw.js" }; \ No newline at end of file diff --git a/wwwroot/index.html b/wwwroot/index.html index d1a15a0..33b9c57 100644 --- a/wwwroot/index.html +++ b/wwwroot/index.html @@ -31,39 +31,39 @@ - + - - - + + + - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + + + + - +