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

make resources offline available #112

Open
zoepage opened this issue Nov 14, 2014 · 10 comments
Open

make resources offline available #112

zoepage opened this issue Nov 14, 2014 · 10 comments
Assignees

Comments

@zoepage
Copy link
Contributor

zoepage commented Nov 14, 2014

Because of font issues (#101 and #108) and also because we want to make the website and especially documentation offline available, I'd love to add an app manifest. As we know, the app cache is a douchebag, I'd suggest we use appcache-nanny. https://www.npmjs.org/package/appcache-nanny

Your suggestions?

cc @verpixelt

@janl
Copy link
Member

janl commented Nov 14, 2014

cc @gr2m :)

@NickColley
Copy link
Contributor

We're generating ours like this: https://github.com/pouchdb/pouchdb/blob/master/docs/manifest.appcache if it's any help.

@zoepage
Copy link
Contributor Author

zoepage commented Nov 14, 2014

Thanks @NickColley for the input :)
I'll check it! :)

@gr2m
Copy link
Member

gr2m commented Nov 16, 2014

I'm not sure if appcache is the best solution to tackle the font issue. I'd separate the issue from making the docs available offline. Could you check with @smashingmag how they did it? I know Vitaly put quite some effort to find a best solution to make their page fast, and I think they ended up with a solution for the fonts that loads them async, and caches them in localStorage

@zoepage
Copy link
Contributor Author

zoepage commented Nov 17, 2014

@gr2m this sounds awesome! will do. Thanks!

@zoepage
Copy link
Contributor Author

zoepage commented Nov 19, 2014

@zoepage
Copy link
Contributor Author

zoepage commented Aug 5, 2015

The font is now stored in the localStorage thanks to @verpixelt! :)

We still want the documentation to be offline available. Any suggestions @gr2m ?

@NickColley
Copy link
Contributor

Booop https://github.com/pouchdb/pouchdb/blob/master/docs/manifest.appcache

Also keep in mind with appcache it will always serve from it's cache first then update itself, so we did the following to tell the user there's an update: https://github.com/pouchdb/pouchdb/blob/master/docs/_layouts/default.html#L202

@gr2m
Copy link
Member

gr2m commented Aug 5, 2015

I'd say let's tackle the offline thing for next hood.ie. It should be straight forward to do with appcache-nanny, including the update notification

@zoepage
Copy link
Contributor Author

zoepage commented Aug 5, 2015

Appcache-Nanny was also my thought.
We just need that for docs in first place.

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

No branches or pull requests

4 participants