0.0.6 • Published 8 years ago

prerender-file-cache-with-bust v0.0.6

Weekly downloads
3
License
BSD
Repository
github
Last release
8 years ago

prerender-file-cache

Prerender plugin for caching in file system, to be used with the prerender node application from https://github.com/prerender/prerender.

#How it works

This plugin will store all prerendered pages into a filesystem hierarchy. For example:

url http://domain.lo/?escaped_fragment=/en/about - will be saved in CACHE_ROOT_DIR/en/about/
url http://domain.lo/?_escaped_fragment
=/en/main/path/blah - will be saved in CACHEROOT_DIR/en/main/path/blah/

and etc

#How to use

In your local prerender project run:

$ npm install prerender-file-cache --save Then in the server.js that initializes the prerender:

server.use(require('prerender-file-cache'));

##Configuration

export CACHE_ROOT_DIR=/you/directory/for/cache
export CACHE_LIVE_TIME=10000 (in seconds)

0.0.6

8 years ago

0.0.1

9 years ago