Closed skellertor closed 1 year ago
I found some chrome related issues around this. It turns out it only erases the cache when dev tools are open. If I refresh when I am offline, and the developer tools are closed, it behaves as it should
Here is the bug I referenced above https://github.com/shadowwalker/next-pwa/issues/177
Summary
When my app goes offline, and I try to refresh the browser, the cache is emptied and I get a error message saying "You are not connected to the internet" when I think it should be showing the cached page.
Versions
next-pwa
: ^5.6.0next
: 12.1.5How To Reproduce
Steps to reproduce the behavior:
Application
tab and navigate to theCache
. Ensure that it has pages cachedNetwork
tab and change it tooffline
to mimic no internet connectionLink to minimal reproduce setup repository if any.
Expected Behaviors
I expect it to go to the network first, if its not there, fallback to the cache and serve the cached page
Screenshots
If applicable, add screenshots to help explain your problem.
Context
Here is my nextconfig.js