Created
June 6, 2012 13:52
-
-
Save tobie/2881982 to your computer and use it in GitHub Desktop.
Example manifest files transformed in JSON
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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": [ | |
"*" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Aren't fallbacks ordered?