Replies: 1 comment
-
@Yonisegev It seems this repo is dead and the maintainer cannot be contacted for so long now. I've made an immediate response by resurrecting this repo ImBIOS/next-pwa. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I'm using:
next 13.1.1
next-pwa 5.6.0
With a very simple PWA configuration:
When running the PWA without the runtimeCaching configuration, everything is cached as needed and offline mode is working fine.
When adding the above runtimeCaching configuration (which whole purpose is I don't want the SW to give a response from the cache instead of doing a network call, because it's an analytic event call),
The files are still cached as needed but when toggling offline mode and refreshing I get the browser error indicating there's no internet.)
I also tried doing it with a custom worker like so (simple implementation here):
worker/index.js:
But I still get the same thing.
I actually see the sw.js file in the browser having my configuration appended to it:
e.registerRoute(/(notify|visible)/, new e.NetworkOnly, "GET")
Any idea how to solve this?
Beta Was this translation helpful? Give feedback.
All reactions