I am building a hybrid iPhone application (Objective-C and html/javascript/css/jQuery through UIWebview) and there is part of the application that need to be able to run in offline mode (just simple browsing data, not updating) and is implemented in html/css. We stored html, css and javascript locally but use JSON service to retrieve data and store data for offline mode using Safari's local storage. We decided to store html, css and javascript files locally because the application wouldn't need to download those files from the server and enable it to work in the an offline mode. We have been testing with iOS version 3.x and it worked fine until we upgraded to version 4.x. It seem like apple has tightened the security and our architecture does not work anymore. Is there any way to work around this? How do you guys implement offline application using html/css through UIWebview?