PythonicCafe / prerender-plugin-fscache

File system cache plugin for prerender.
GNU Lesser General Public License v3.0
2 stars 0 forks source link

prerender-plugin-fscache

File system cache plugin for prerender. Main features:

Usage

Install the dependency:

npm install prerender-plugin-fscache

Load the plugin into your server:

// server.js

const prerender = require("prerender");
const server = prerender();
server.use(require("prerender-plugin-fscache"));
server.start();

Run it with node server.js and then test it:

time wget http://localhost:3000/https://www.google.com/  # First one will time more time
time wget http://localhost:3000/https://www.google.com/  # Cached, should be quicker

Settings (environment variables)