top | item 4733102

Bootup.js - cache and load static files from local storage

44 points| quan | 13 years ago |github.com | reply

13 comments

order
[+] le_isms|13 years ago|reply
Please correct me if I'm wrong, but isn't this what the browser cache is for?
[+] dkordik|13 years ago|reply
Yeah, at least for the caching part, it seems like you should let that be the browser's responsibility, and set up Expires headers/etc appropriately. But what about the offline viewing use case? What are some good solutions to that these days?
[+] nickporter|13 years ago|reply
Warning, LGPL licensed.
[+] dkroy|13 years ago|reply
Yeah, it could have been the best project ever, but the license is the first thing I look at. So I saw that then closed the page.
[+] jakejake|13 years ago|reply
Why would you consider that bad? GPL brings its particular baggage, but LGPL seems fairly unobtrusive to use in about anything. RMS seems to even discourage its use, even though he created it!
[+] itsnotvalid|13 years ago|reply
Looks like an open-source version of Cloudflare's Rocket Loader, but without the source file concatenation. Still, we should produce something open-source for these.
[+] aioprisan|13 years ago|reply
There is also a size limit of 5MB that you should be aware of.
[+] solox3|13 years ago|reply
That is the default, not the limit. In all modern browsers, this limit is either 5MB, or set to prompt when the web page requests any larger.