- Open your Chrome Developer Tools
- Navigate to the Network tab
- Just right click into the panel and choose Copy ALL as HAR (maybe the page needs a reload)
- Switch to the console tab and save your HAR data in a variable. (
var data =
cmd + v) - Now let's create the cache manifest:
console.log('CACHE MANIFEST\n\nCACHE:');
data.log.entries.forEach(function(entry) {
console.log(entry.request.url)
});
console.log('\nNETWORK:\n*');
You did it!
I suppose I have to write a Chrome plugin. 👍