O'Reilly logo

HTML5 Multimedia Development Cookbook by Lee Jordan, Dale Cruse

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

Creating a cache manifest for offline storage

In this recipe we will create a cache manifest file to enable us to store an HTML5 page offline and still view the images and video displayed on the page.

Getting ready

You will need an HTML5 page, such as the one provided in the code files of this recipe, and access to upload files to a server, and then view them on a computer, smart phone, or other web-enabled device with a browser.

How to do it...

First, we will create the Cache Manifest file. This should be created in a simple text editor. It should contain all the files and supporting code a user will need to access while offline. The first thing listed is the current file type (CACHE MANIFEST). The version number of the manifest should also be included. ...

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