Is it possible to cache a whole website including start html page and startup with no internet connection?

StackOverflow https://stackoverflow.com/questions/965534

Question

Our website is an AJAX website that makes no page requests after the initial start up of our website. Information is communicated with the server through XMLHttpRequests.

Our website allows users to work online and offline without a connection during a user session. When a connection is detected our website "synchronizes" with the server.

Our problem is that if the internet browser running our website crashes while the user has no internet connection the user cant begin working with our website until she/he gets an internet connection back.

Is it possible to have the browser cache the initial startup page (index.html) along with the other website resources and have the browser use the cached version of the startup page when there is no internet connection present?

Was it helpful?

Solution

(Google)Gears is exactly about this.

OTHER TIPS

Not with any technology built into common web browsers.

You can achieve this using Google Gears, but that requires the user to install a plugin and grant permission to your website to use it. Google Docs and Wordpress are examples of web applications that use this.

This really isn't feasible. You could look at Smart client technology if you truly need to work offline. That'll be a lot of work though depending on the size of your application.

Technically it is possible. Google Gears does it. So Google can now save your entire gmail app on your local machine and operate without an internet connection.

You can use HTML5 databases, check the iPhone version of gmail for offline functionality without a plugin.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top