0.1.2 • Published 8 years ago

delta-cache-express v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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);
0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago