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

Can this work as a PWA? #15

Closed
jundalisay opened this issue Oct 22, 2018 · 5 comments
Closed

Can this work as a PWA? #15

jundalisay opened this issue Oct 22, 2018 · 5 comments

Comments

@jundalisay
Copy link

I just started learning PWAs. Can this work with a Vue-based service worker vue init pwa or a Rails-based serviceworker gem "serviceworker-rails" ?

@pftg
Copy link
Member

pftg commented Oct 22, 2018

Idea was to use Turbolinks in order to have similar features like PWA.

@pftg
Copy link
Member

pftg commented Oct 27, 2018

@jundalisay will add PWA example on the next week

@pftg
Copy link
Member

pftg commented Nov 18, 2018

@jundalisay there are 2 solutions:

  1. Use serviceworker-rails like gems
  2. Add own code to allow process sw files in a recommended way to provide those files like serviceworker-rails: no caching, no digest, specific headers for nested paths

Added example how to do it on https://github.com/jetthoughts/vuejs-rails-5-starterkit/tree/service-worker you could check.

@jundalisay
Copy link
Author

Thanks! I'll try it next month. I'm trying out Vue with Google Workbox and Rails API

@pftg
Copy link
Member

pftg commented Nov 18, 2018

I'll add example how to use workbox - it's much simpler, would like to remove serviceworker-rails and use workbox + webpack plugin as example

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

No branches or pull requests

2 participants