by penguindev on 6/29/14, 8:53 PM with 15 comments
by jwise0 on 6/29/14, 10:15 PM
In response to a cache that provides only bare minimums for functionality, the author seems to be suggesting throwing away all the the cache logic that browser vendors have gone to implement for you, and instead rewriting one's own cache atop LocalStorage and IndexedDB. This seems like a pretty concerning reaction -- or am I simply misreading the author's conclusion?
by Lerc on 6/30/14, 12:20 AM
var s=localStorage["bootstrap"];
if (s) {eval(s);} else {
var t="But you are not carrying the axe!<br>";
t+='<a href="loadup.html">Get the Axe</a>';
document.body.innerHTML=t;
}
http://fingswotidun.com/notanos/Ultimately I found that I needed a server side because of URLs and the same-origin policy. There were just some things that browsers expected to fetch from a URL rather than have the data arrive by other means.
For a time I used a WebDav server to be a dumb server. Eventually the system evolved into https://github.com/Lerc/notanos Which uses it's own custom server https://github.com/Lerc/userserv which uses your unix login and statically serves files that your logged-in user is allowed to see.
by timothya on 6/30/14, 12:20 AM
There was a short video about ServiceWorker at the recent Google I/O that you can check out for an overview[2].
[0]: http://alistapart.com/article/application-cache-is-a-doucheb...
[1]: https://github.com/slightlyoff/ServiceWorker/blob/master/exp...
by aikah on 6/29/14, 10:45 PM
The OP says : only put index.html in the appcache file.
But what about if I want my app to work offline,do I really need to go and shove everything in local storage?
So what's the point of appcache then ? and who went along with that spec at first place?
This specific issue infuriates me.It makes creating offline web app so complicated ,it's like the people writing the spec didnt want developpers to write offline apps.
Just fix the damn spec.
by jamescun on 6/29/14, 11:06 PM