Closed art0rz closed 5 years ago
Might be a bit late to the party here but I think there is a step between 6 and 7 that you're missing. Please bear in mind I haven't tried to reproduce the issue using your steps, so I apologise if you've already tried the below and are still encountering the problem.
The old service worker will not be de-registered and the new one will not be installed until the browser tabs have been closed, so after step 6, having refreshed the page and pulled down the new service worker, the next step should be Close all tabs associated with the application and then reopen the application before disabling the network to check the cache.
@art0rz please follow the steps outlined in https://github.com/NekR/offline-plugin/blob/master/docs/updates.md if the problem persists, please re-open this issue.
The app cache is not updated when using
"network-first"
responseStrategy
and refreshing the app. Steps to reproduce:responseStrategy
set to"network-first"
console.log('1')
to your app1
being logged in your browser console1
being loggedconsole.log('2')
2
being logged. Cache should be updated1
being logged in your console