Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Going Offline > Online Whitelist and Fallback Options

6.2. Online Whitelist and Fallback Options

It is possible to force the browser to always access certain resources over the network (this process is known as whitelisting). This means the browser will not cache them locally and they will not be available when the user is offline. To specify a resource as online only, use the NETWORK: keyword (the trailing : is essential) in the manifest file like so:

CACHE MANIFEST
index.html
scripts/demo.js
styles/screen.css

NETWORK:
logo.jpg


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial