bahmutov / bottle-service

Instant web applications restored from ServiceWorker cache
https://glebbahmutov.com/bottle-service/
332 stars 9 forks source link

Make compatible with more browsers #7

Open NathanWalker opened 8 years ago

NathanWalker commented 8 years ago

This is more of a to-do to myself to create a PR to broaden the browser support for this. I'm pretty sure there's service worker support in Safari (desktop and mobile) and chrome mobile or at least a way to make it work from what I've read in past.

NathanWalker commented 8 years ago

https://jakearchibald.github.io/isserviceworkerready/

NathanWalker commented 8 years ago

https://github.com/coonsta/cache-polyfill

bahmutov commented 8 years ago

Good points, definitely needed once everything is working (I am looking to make a demo based on https://github.com/bahmutov/hydrate-vdom-todo)

boneskull commented 8 years ago

I haven't looked at this lib too deeply, but are there constraints around how much data you can stuff into localStorage? Especially on mobile platforms?

bahmutov commented 8 years ago

so localStorage is very problematic - it has 5MB at most limit, and the behavior varies across browsers how and if it is going to ask. I suggest using localForage project - it works across any available data storage