This content has been marked as final. Show 5 replies
Edit: After rereading the question I rather agree with the next reply... indeed this is possible, not trivial, but possible. After my initial reading I somehow thought that you wanted to access the 'offline' pages of the site from within a regular browser. I'm sorry if I have been confusing people ;-)
AIR is not suited for this kind of 'non-flushing-cache' functionality. I'm not sure if Gears or HTML5 would be useful either though. Do they allow for the local interception of a request when not online?
What you could for instance do in AIR is build a 'NYT-browser' (as a distinct desktop app) that does exactly what you're describing.
It should be possible to do what you said, but just like Gears (or what I understand about it), you'd need to work to get it done in AIR.
Deciding if a URL has to hit the local datastore or not will have to be handled by the application. You can store the entire web page on the hard disk and access from there without any problems in AIR.
Though you'd have to write code for "take this article offline" sort of a feature. AIR has no built-in API to dynamically save all associated resources with any HTML page. I don't think Gears does either. You'd have to do it in code yourself.
This is the "data layer" you have to put in your application to make it easy for offline features. AIR and Gears provide APIs to make it possible to have data locally among other things.
Did that answer your question or confuse you futher? :)
You are right, I don't think that Gears has a feature to automatically take offline a page and all the resources it depends on. With Gears, you need to list the resources you want to take offline. But once you have done that, if a request is made in the browser to a URL that has been taken offline, instead of hitting the web site, the content will be loaded from a local store. So with AIR, here is how this could be done:
Is this understanding accurate?
> Is this understanding accurate?
Thank you for confirming this.