Closed NullVoxPopuli closed 6 years ago
I may have figured it out:
'esw-index': {
includeScope: [
/\/$/,
]
},
'asset-cache': {
include:[
'assets/**/*',
'**/*.html'
]
},
my main issue was that esw-index.includeScope says what things get the index file. I also needed a terminating $
on my root regex, because it was matching all paths.
Hm. Maybe not. Phones are still behaving the old way :/
My production site: https://emberclear.io/chat/
First time will be redirected to setup page. But once setup, it flashes the index page on load. (Even on private browsing mode)
I think adding a ^
to my index include received did it.
In Firefox Focus, I see correct behavior. Looks like I'm having cache busting issues with chrome. (Both: Android apps)
I'm having an issue where when I refresh the page and have the dev tools closed, when I visit
/chat
the/
route flashes first. If I have the dev tools open,/chat
is what is rendered right away.my ember-cli-build.js https://gitlab.com/NullVoxPopuli/emberclear/blob/master/packages/frontend/ember-cli-build.js
relevant bits:
in my chrome dev tools, I do have "Update on reload" and "Bypass for network" checked. It seems that Bypass for network is what is allowing the correct page to be fetched upon refetch.
So, I assume that the service worker isn't fetching my prember'd
/chat
route? did I misconfigure something?my dist folder looks like: