Hacker News new | ask | show | jobs
by jaffathecake 5246 days ago
You're not far off...

To cache everything you're tracking/attending visit http://m.lanyrd.com/calendar/yours/ - the root url redirects here if you're logged in.

The data for each conference is versioned, you can see the version number as data attributes on each list item. If the data you have doesn't match that version number, a few XHR requests are triggered to fetch the latest data.

Also, if you look at a conference page you're tracking or attending while online, we do a data-version check for that conference and update if needed.

I'm writing up an article on all the troubles we had with ApplicationCache, for there were many. LocalStorage was extremely simple & useful though.

1 comments

I'm in the middle of a short build (~5 days) mobile app that is using app cache and annoyingly I can't see to get it working on iOS, all the standard web browsers seem fine but iOS is being a PITA. I don't suppose you have any top tips?

That said more technical details would be awesome - I'd love to see how other people are doing things like this!

We didn't have to do anything special to get offline stuff working in iOS, sounds like we're lucky we didn't hit the problem you're having.

Here's a simple demo that works in iOS http://appcache-demo.s3-website-us-east-1.amazonaws.com/xhr/ - that might make it easier to see what you're doing differently. Are you serving the manifest with the correct content-type header, for instance?

Thanks for that its really appreciated!
Jake has an article in the works that will go in to this stuff in much more detail - keep an eye on http://lanyrd.com/blog/ for the link when he finishes it.