Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Service worker #80

Closed
wants to merge 5 commits into from
Closed

Conversation

eluciano11
Copy link
Contributor

Hi, this pull request has an implementation of a service worker. The goal of the pull request it to make emberaddons.com work offline and to make the site quicker by catching some dependencies in the CacheStorage. Currently, service workers are supported in Chrome, Firefox and Opera. The pull request also fixes issue #67 .

The worker implementation can be found in ember-cli-addons-search/public/sw.js

What we have so far?

Currently, the service worker is installing properly and it is caching the some basic dependencies like addons.json, the apps css and javascript uppon installation. It also filters and caches the gravatars of the addon authors. All of this dependencies are stored in the CacheStorage.

What do we need?

Cache Busting Strategy - We need to figure out a cache busting strategy to update the responses stored in the cache. I think this should be managed in the activate event.

Make service worker work with query strings in the url - Currently the service worker functions without any problems if you enter the main url but if you try to access the app with query strings in the url the service worker doesn't work.

@eluciano11 eluciano11 closed this Apr 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant