Problem:
For example I have page /hello1 and /hello2. Also I has fallback page /offline. /hello1 is prerendered on build step and /hello2 doesnt. As a result, when I enter on /hello1 page it renders as it must be, but /hello2 (when it was done on server side, for example after f5 on that page) firstly shows up as /offline and then immediately renders as it must be on the client side. Of course, such behaviour exists only when vite pwa is connected. This is my nuxt.config.ts file. If you need something else ask me.
What I want as a solution:
There must be no fallback page if page exists. If page /hello2 exists but is not prerendered (so is nit precached by workbox), so there must be done normaly request to server and rendered html which was rendered on ssr.
Try excluding all dynamic pages from sw interception (workbox.navigateFallbackDenylist), dont use that cache for html pages, should be with no cache and must revalidate
Problem: For example I have page /hello1 and /hello2. Also I has fallback page /offline. /hello1 is prerendered on build step and /hello2 doesnt. As a result, when I enter on /hello1 page it renders as it must be, but /hello2 (when it was done on server side, for example after f5 on that page) firstly shows up as /offline and then immediately renders as it must be on the client side. Of course, such behaviour exists only when vite pwa is connected. This is my
nuxt.config.ts
file. If you need something else ask me.What I want as a solution: There must be no fallback page if page exists. If page /hello2 exists but is not prerendered (so is nit precached by workbox), so there must be done normaly request to server and rendered html which was rendered on ssr.