Prefetch Issue For SSR + PWA App On Production #17406
Labels
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-vite
kind/bug 🐞
mode/pwa
mode/ssr
Qv2 🔝
Quasar v2 issues
What happened?
I'm trying to build SSR + PWA app without having to modify service worker. The issue only occurs on production environment (with valid TLS cert).
The issue is
preFetch
triggers in client side after user's initial visit to the website, leavingdummyStore.data
empty. Also,api-.defaults.baseURL
doesn't persist its state from server side to client side.App.vue:
Check the full setup for details but you'll have to somehow apply TLS or deploy to production to actually see the issue. I'm guessing this is due to PWA service worker caching assets but I'd rather not custom create service worker.
What did you expect to happen?
I expected
preFetch
to trigger every time on SSR + PWA build as it's a core feature of SSR.Reproduction URL
https://stackblitz.com/edit/quasarframework-wwjavn?file=package.json,quasar.config.js
How to reproduce?
preFetch
will trigger in server when visiting the website for the first time.preFetch
will now trigger on client side instead.Flavour
Quasar CLI with Vite (@quasar/cli | @quasar/app-vite)
Areas
SSR Mode, PWA Mode
Platforms/Browsers
Firefox, Chrome, Safari, Microsoft Edge
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: