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

Addon proposal: ember-service-worker #6

Open
CodingItWrong opened this issue Sep 10, 2018 · 2 comments
Open

Addon proposal: ember-service-worker #6

CodingItWrong opened this issue Sep 10, 2018 · 2 comments

Comments

@CodingItWrong
Copy link

I would like to propose a few additional addons to be made available: ember-service-worker and its associated optional plugins:

  • ember-service-worker-index (caches index.html)
  • ember-service-worker-asset-cache (caches static assets: js, css, images, fonts)
  • ember-service-worker-cache-fallback (caches API responses)

Service workers are a major component of adding Progressive Web App functionality to a webapp and giving it parity with native apps. This has been a significant focus of Ember at least since the 2016 Emberconf keynote. And ember-service-worker benefits from Ember's conventions to provide very simple setup. I've even heard that there are discussions about potentially including service workers by default in Ember.

@gossi
Copy link
Owner

gossi commented Sep 10, 2018

Do you suggest a new category or one-option-that-installs-many-addons ?

@CodingItWrong
Copy link
Author

It would probably be best as another category, because these plugins are opt-in, and it's designed so you don't necessarily need to use all of 'em. At the same time, they do feel like kind of a low-level concern, so maybe that is a reason to consider not including Service Worker. It's less of a "drop one addon in and you're set" thing.

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