HTML and CSS Reference
In-Depth Information
To test the application's ability to load a newer version, update the revision number in the
tasks.appcache file and save it. Next, reload the application. You should see the confirm-
ation dialog asking you if you want to update. This is illustrated in the Android device
screenshot in figure 5.8 .
Figure 5.8. When the manifest file has been updated and a new application cache has been created, the
updateready event is fired. The application attaches a handler to this event that swaps the old cache for the new
cache, then asks the user if they want to update the application (this simply reloads the page, which loads the latest
application version from the new cache).
 
Search WWH ::




Custom Search