iPhone Offline Web Apps – the RESTful Way – Part 1 of 2
[ Concrete/Very Interesting ] Whist building a web application for the iPhone, I was presented with a problem. One of my team managed to replicate the work we've been doing using Objective-C. I looked at the code – didn't like it but it worked. The problem was, it worked offline . ‘Can't have this’ I thought, so I embarked on making my application offline capable. Sounds easy – well in principle, it is. In practice, there were a few pitfalls that I thought I'd better blog about. Of course, I had a cold and had just received an H1N1 vaccination, so maybe on a good day… Anyway, here is some background and my tips to Offline Web Apps, the RESTful way. HTML5 Offline Application Cache You can find out lots of good stuff about this on the Internet. The official reference from Apple can be found here . The key is to create an cache manifest file naming all your resources - HTML files, Scripts, Style Sheets, images, and so on… You then reference the manifest file (....