Just include the cache-manager.js file in the header of your document.
That's it, you're done!
Note that cache manifest needs to be added as an attribute to the html element of the document you want to make offline capable. This manifest file is just a text file, but its mimetype needs to be text/manifest.
You may find a lot of informations about Cache Manifest here: