alexdobre / RDL_Google_Tech

Java for the Google technology code
0 stars 0 forks source link

Add offline support via cache manifest #192

Open alexdobre opened 10 years ago

alexdobre commented 10 years ago

http://gwtbootstrap3.github.io/gwtbootstrap3-demo/#offline

Web applications consist of web pages that need to be downloaded from a network and for this to happen there must be a network connection. However there are many instances when users cannot connect to a network due to reasons beyond their control. HTML5 provides the ability to access the web application even without a network connection using thecache manifest. http://en.wikipedia.org/wiki/Cache_manifest_in_HTML5

The entire web application (css, javascript, resources etc) can be downloaded and stored locally so that offline support is possible - in addition this may improve perceived speed of your web application by making all resources instantly available from local storage.

Unfortunately, the GWT compiler automatically generates lots of css and javascript files that are different after every compile (the file names are crypto hashed) and so the cache manifest needs to reflect this new set of files each time.

The Offline linker performs this task of generating a valid cache manifest every time you compile.