Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@tobie

tobie Jun 14, 2012

Aren't fallbacks ordered?

Owner

tobie commented Jun 14, 2012

Aren't fallbacks ordered?

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