@nuxtjs/firebase + @nuxtjs/pwa/workbox conflict
See original GitHub issueVersion
@nuxtjs/firebase: 5.0.7 @nuxtjs/pwa: 3.0.0-beta.20 firebase: 7.14.2 nuxt: 2.12.2
Reproduction Link
https://github.com/m2sd/nuxt-firebase-pwa-test
Steps to reproduce
Follow the steps in the repo
What is Expected?
Firebase ssr auth and Workbox should work in conjunction so that requests are augmented with authorization AND cached
What is actually happening?
Either Firebase ssr auth OR Workbox take precedence, the other one is skipped completely
Possible solutions
We could replace the page caching from workbox with our own implementation and configure according to the settings in options.pwa.workbox
.
Downside: This creates a direct dependency on workbox, but as the @nuxtjs/pwa
is the de facto standard for PWA implementations this could be a viable option.
Upside: The necessary change might be small enough that it could be implemented conditionally (if workbox is present => include as routingExtension
, else => include as standalone SW)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:11 (7 by maintainers)
Hey I’m running into this problem! Is there any way to patch it at least temporally? I’m really new to webdev
How’s this issue coming along? The article referenced by @alanlobeslab didn’t do it for me.