Serve an appcache with some Connect middleware. Abandoned. Add an issue if you want to take over!
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
LICENSE.txt
README.md
connect-appcache.js
package.json

README.md

connect-appcache

Serve an appcache with some middleware.

appcache = require("connect-appcache")

cacheOptions =
  path: "/cache.appcache"
  comment: "Lovingly made by Evan Hahn."
  cache: ["the.js", "other.js"]
  network: ["*", "*/*"]
  fallback: { "/": "index.html" }

if inDevelopmentMode
  app.use(appcache(cacheOptions, "development"))
else
  app.use(appcache(cacheOptions, "production"))

In development mode, it will rebuild the cache each time. In production mode, it will build the cache once.

Defaults to production mode.

And that is all.