Create a gist now

Instantly share code, notes, and snippets.

Example manifest files transformed in JSON
// CACHE MANIFEST
// NETWORK:
// comm.cgi
// CACHE:
// style/default.css
// images/sound-icon.png
// images/background.png
{
"network": [
"comm.cgi"
],
"cache": [
"images/sound-icon.png",
"images/background.png",
"style/default.css"
]
}
// CACHE MANIFEST
//
// /main/home
// /main/app.js
// /settings/home
// /settings/app.js
// http://img.example.com/logo.png
// http://img.example.com/check.png
// http://img.example.com/cross.png
//
{
"cache": [
"/main/home",
"/main/app.js",
"/settings/home",
"/settings/app.js",
"http://img.example.com/logo.png",
"http://img.example.com/check.png",
"http://img.example.com/cross.png"
]
}
// CACHE MANIFEST
// FALLBACK:
// / /offline.html
// NETWORK:
// *
{
"fallback": {
"/": "/offline.html"
},
"network": [
"*"
]
}
@tobie
Owner

Aren't fallbacks ordered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment