Connect middleware that short circuits request handling if it can send a 304 Not Modified response. Intended to be used with reverse proxies like Varnish.
Want to see pretty graphs? Log in now!
npm install connect-guard
|17||downloads in the last week|
|21||downloads in the last month|
|Last Published By|
|Version||0.1.2 last updated 2 months ago|
|Keywords||connect, cache, proxy, cache-control, etag, last-modified, varnish|
Guard is connect middleware that short circuits request handling if it can send a 304 Not Modified response. Intended to be used with reverse proxies like Varnish.
Work in-progress. Hold off for a bit.
Guard can store request and response information wherever you like. In memory is the default. If your site hosts lots of unique URLs, a DB is probably a better choice. Choose one of the following stores, or write your own.
$ git clone https://github.com/goodeggs/connect-guard && cd connect-guard $ npm install $ npm test