Deathscythe,
I was going to suggest using Java but I didn’t know how versed you are with it.
I do not believe that currently there is a way to cache offline webpages:
Why isn’t your internet connection automatically coming back after a reboot? I think if you solve that and use the AJAX work around, that would be your best solution.