You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

appcache-node

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appcache-node

appcache-node =============

0.0.2
Source
npm
Version published
Weekly downloads
1
-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

appcache-node

###Why don't more people use HTML5 application cache?

Why! Why! Why!

Big performance increase, reduced load on yr servers. This is for Nodejs & Express. Only two lines needed. Let their browsers do the work!

####In any HTML page you wish to cache..

<html manifest="app.cache">

####In the app.js..

require('appcache-node')({files: []}, app)

Browser now caches your page in the HTML5 app cache. You control other links in the page to cache like so..

require('appcache-node')({files: [
	// no need to include html files that start with <html manifest="app.cache">
	'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css'
	, 'http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js'
]}, app)

No messing with a cache manifest on the server. /app.cache is in memory and automatically served by Express. Kids on the net say to improve performance, use a CDN! So 2012.

When you restart your app, the app.cache is rebuilt and so cache cleared.

Keywords

util

FAQs

Package last updated on 31 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts