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

Fix #546 - Use sw-precache to make Bramble offline ready #547

Merged
merged 1 commit into from
Apr 12, 2016

Conversation

humphd
Copy link

@humphd humphd commented Apr 5, 2016

With this patch, I can run Bramble offline. It's really cool. The major downside to this is that it requires us to keep a static list of files in order to "prime" the cache, and register handlers for the Service Worker to respond to when URLs are requested. I don't see us adding a lot of files, but it's something we'll have to keep an eye on. I need to document this, too.

This probably needs another bit of tidying up, but it's pretty close.

cc @gideonthomas

@gideonthomas gideonthomas self-assigned this Apr 8, 2016
ignoreUrlParametersMatching: [/./]
};

swPrecache.write(Path.join(rootDir, 'bramble-sw.js'), config, function(err) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this write to dist/?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gideonthomas
Copy link

Few questions otherwise looks good to merge

@humphd
Copy link
Author

humphd commented Apr 12, 2016

@gideonthomas, I've updated things, you OK with it now r?

@gideonthomas
Copy link

r+

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

Successfully merging this pull request may close these issues.

2 participants