delta-cache-express
v0.1.2
Published
Express middleware for delta caching server support
Downloads
2
Maintainers
Readme
delta-cache-express
Express middleware for server support for delta caching
Designed to work with delta-cache-browser. Note that HTTPS is required if you're using that library.
Semi-complies with the RFC 3229 delta encoding spec with googlediffjson encoded deltas.
Getting Started
var DeltaCache = require('delta-cache-express');
var express = require('express');
var deltaCache = DeltaCache();
var app = express();
app.get('/dynamicContent', function(req, res, next) {
// put your response body in this variable for DeltaCache to find
res.locals.responseBody = new Date().toString();
next();
}, deltaCache);