X Tutup
Skip to content

EvanHahn/connect-appcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Serve an appcache with some Connect middleware. Abandoned. Add an issue if you want to take over!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

X Tutup