-
Notifications
You must be signed in to change notification settings - Fork 28
Manifest
The manifest task was implemented to walk through the files of a framework an mark the file that should be written into the cache.manifest to store tis files offline on the device. If the excluding is defined in the config.json, all files are written to the cache section.
Each cache.manifest contains of three sections:
Cache
Alle entries in this section are stored offline.
Network
Alle entries in this section are not stored offline. They are downloaded every time the application is started.
Fallback
Alle entries in this section contains fallbacks, if any cached resources are not avaliabe on the device, the fallback that is defined here.
For more information about getting HTML5 apps offline follow this link http://diveintohtml5.org/offline.html.
The task checks if a file is defined in the config.json as to be excluded. If this true, the file is written into the Network section and in the cache section otherwise.
"excludedFromCaching":[
"someFile.js",
"someFileOtherFile.js",
"someImage.png"
],
The following diagram shows the workflow of the task manifest: