Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

200 offline response ssr #1681

Closed
ashwinkshenoy opened this issue Oct 5, 2018 · 1 comment
Closed

200 offline response ssr #1681

ashwinkshenoy opened this issue Oct 5, 2018 · 1 comment

Comments

@ashwinkshenoy
Copy link

Browser & Platform:
"all browsers".*

Issue or Feature Request Description:
Is there a way to respond with a 200 when offline using workbox webpack plugin with SSR in Vue?
I found this option with SWPrecachePlugin
vuejs/vue-hackernews-2.0#173

@jeffposnick
Copy link
Contributor

In general, using https://www.npmjs.com/package/@vue/cli-plugin-pwa and then adopting the App Shell pattern (which implies setting a navigateFallback option corresponding to your generic HTML) should work. When the service worker is in control, the navigation requests won't actually make it to the server, so SSR is not a factor here.

There's some context at vuejs/vue-cli#717 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants