Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple way to add a cache manifest to a Meteor app?

I would like to make the Meteor (meteor.com) app load without connectivity to the meteor server(offline) via cache manifest.

I think a similar question has already been asked here: How can I add a cache manifest to a Meteor app? but I couldn't follow their solution (more on this below).

Is there a simple way to include a cache manifest on a Meteor app and have the manifest populated with all the meteor assets?


From the related post my questions are:

  • You can get a full list of css and js files by hooking into: bundle.css and bundle.js.client

    What is involved in "hooking into" those files? How should I proceed?

  • buffer.files.client_cacheable['manifest.appcache'] = new Buffer(manifestcontent);

    What does this do and where should it go?

  • Then you can edit /app/lib/app.html.in to add the reference in

    Is this just the manifest="/application.manifest" bit in the html tag?

like image 707
Timothy Ahong Avatar asked Aug 19 '12 18:08

Timothy Ahong


1 Answers

I would find it easier to build your manifest from outside, using ManifestR. The page also included how it should be added into the <head> of each page.

like image 80
Mooseman Avatar answered Sep 22 '22 15:09

Mooseman