appcache magics

Would it be possible to replace this file with an appcache generator module from NPM? Whether it's one that already exists, or just making this a stand-alone module, so we can re-use it elsewhere.