prerender.io plugin for caching in file system (based on https://github.com/legalnavigator/prerender-disk-cache)
npm install prerender-multidomain-disk-cacheCACHE_ROOT_DIR/www.domain.com/en/about/perender.cache.html
CACHE_ROOT_DIR/www.domain.com/en/about/perender.cache.html
CACHE_ROOT_DIR/www.domain.com/en/main/path/blah/perender.cache.html
CACHE_ROOT_DIR/www.domain.com/en/main/path/blah/perender.cache.html
$ npm install prerender-multidomain-disk-cache --save
server.js that initializes prerender:
server.use(require('prerender-multidomain-disk-cache'));
export CACHE_ROOT_DIR=/your/directory/for/cache
export CACHE_LIVE_TIME=10000 (in seconds)
`
- CACHE_ROOT_DIR defaults to os.tmpdir()/prerender-cache
- CACHE_LIVE_TIME defaults to 3600` (1 hour)