O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with application cache

Application cache is one of the new technologies that is coming from the HTML 5 specification. It allows web applications to specify files that are downloaded when the browser accesses the page. The browser will look at the files in the application cache before opening any network connections to the server. This means if the computer or mobile device goes offline, then those files are still available and loaded straight away.

To know if your application has an application cache file, you will need to have a look at the source of the HTML document. It should have a manifest attribute in the html tag as follows:

<html manifest="example.appcache"> 
  ...
</html>

When items are downloaded, we can then make calls to the application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required